very bad demo code

This commit is contained in:
Joe Kralicky 2025-02-18 01:33:15 +00:00
parent b4aa275403
commit d588135b3a
No known key found for this signature in database
GPG key ID: 75C4875F34A9FB79
30 changed files with 1308 additions and 248 deletions

View file

@ -649,7 +649,7 @@ func (a *Authenticate) DeviceAuthLogin(w http.ResponseWriter, r *http.Request) e
fmt.Fprintf(w, `{"token": "%s"}`, string(tokenJwt))
return nil
} else {
authResp, err := authenticator.DeviceAuth(w, r)
authResp, err := authenticator.DeviceAuth(r.Context())
if err != nil {
return httputil.NewError(http.StatusInternalServerError,
fmt.Errorf("failed to get device code: %w", err))