- Notifications
You must be signed in to change notification settings - Fork1k
feat: failed update refresh should redirect to login#9442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
b2f5073
de797e6
906dd87
a04fd7b
b28a86f
85155d2
22534ee
88aeaf0
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -296,7 +296,7 @@ func ExtractAPIKey(rw http.ResponseWriter, r *http.Request, cfg ExtractAPIKeyCon | ||
}).Token() | ||
if err != nil { | ||
return write(http.StatusUnauthorized, codersdk.Response{ | ||
Message: "Could not refresh expired Oauth token. Try re-authenticating to resolve this issue.", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. How will they reauthenticate other than manually wiping their cookies? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. The frontend will intercept the "Unauthorized" status code and redirect to the login page. They shouldn't ever even see this message. If they're using the CLI, they can just run There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Oh, duh lol | ||
Detail: err.Error(), | ||
}) | ||
} | ||