Skip to content

fix: redirect to login upon authentication error #9134

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Aug 17, 2023
Prev Previous commit
Next Next commit
oops
  • Loading branch information
aslilac committed Aug 17, 2023
commit 0c56f68c38852a83fee531c6e3f0c6a1ce7e3a00
1 change: 0 additions & 1 deletion coderd/httpmw/apikey_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ func TestAPIKey(t *testing.T) {
defer res.Body.Close()
require.Equal(t, http.StatusUnauthorized, res.StatusCode)
out, _ := io.ReadAll(res.Body)
require.Contains(t, string(out))
require.True(t, strings.HasPrefix(string(out), "API key expired"))
})

Expand Down