A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: handle `invalid_grant` error during login
Abdullah Attad10c1eb8b7f0
diff --git a/apps/web/src/views/auth.tsx b/apps/web/src/views/auth.tsxindex db1edc470..08ec7d60e 100644--- a/apps/web/src/views/auth.tsx+++ b/apps/web/src/views/auth.tsx@@ -841,6 +841,10 @@ export function AuthForm<T extends AuthRoutes>(props: AuthFormProps<T>) {await props.onSubmit(form);} catch (e) {const error = e as Error;+ if (error.message === "invalid_grant") {+ hardNavigate("/login");+ return;+ }setError(error.message);} finally {setIsSubmitting(false);