mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
web: do not redirect automatically on login session expire
This commit is contained in:
@@ -841,7 +841,9 @@ export function AuthForm<T extends AuthRoutes>(props: AuthFormProps<T>) {
|
||||
} catch (e) {
|
||||
const error = e as Error;
|
||||
if (error.message === "invalid_grant") {
|
||||
hardNavigate("/login");
|
||||
setError(
|
||||
"Login session has expired. Please refresh this page and try logging in again."
|
||||
);
|
||||
return;
|
||||
}
|
||||
setError(error.message);
|
||||
|
||||
Reference in New Issue
Block a user