mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 15:26:35 +00:00
Fix lint issue
This commit is contained in:
@@ -47,12 +47,18 @@ export const Route = createFileRoute("/_authenticate")({
|
|||||||
if (err.response?.status === 403) {
|
if (err.response?.status === 403) {
|
||||||
// (dangtony98): this edge-case can occur if the user's token corresponds to an organization
|
// (dangtony98): this edge-case can occur if the user's token corresponds to an organization
|
||||||
// that has been deleted for which we must clear the refresh token in http-only cookie
|
// that has been deleted for which we must clear the refresh token in http-only cookie
|
||||||
clearSession(true);
|
createNotification({
|
||||||
await logoutUser();
|
type: "error",
|
||||||
throw redirect({
|
title: "Access Denied",
|
||||||
to: "/login"
|
text: "Something went wrong with your session. Please log in again."
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
clearSession(true);
|
||||||
|
await logoutUser();
|
||||||
|
|
||||||
|
throw redirect({
|
||||||
|
to: "/login"
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
return { organizationId: data.organizationId as string, isAuthenticated: true, user };
|
return { organizationId: data.organizationId as string, isAuthenticated: true, user };
|
||||||
|
|||||||
Reference in New Issue
Block a user