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
lint
  • Loading branch information
aslilac committed Aug 16, 2023
commit 342c3d78affd6bdd4c624f700d86ae1a26b3b893
2 changes: 1 addition & 1 deletion site/src/components/Alert/ErrorAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { FC, useEffect } from "react"
export const ErrorAlert: FC<
Omit<AlertProps, "severity" | "children"> & { error: unknown }
> = ({ error, ...alertProps }) => {
const [auth, authSend] = useAuth()
const [_auth, authSend] = useAuth()
const shouldSignOut = isAuthenticationError(error)
useEffect(() => {
if (shouldSignOut) {
Expand Down