π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
tweak
Manav Rathi1ea7a8f3a7a1
diff --git a/web/apps/auth/src/pages/auth.tsx b/web/apps/auth/src/pages/auth.tsxindex 9774ee3e7d..80a342f38a 100644--- a/web/apps/auth/src/pages/auth.tsx+++ b/web/apps/auth/src/pages/auth.tsx@@ -35,7 +35,7 @@ const Page: React.FC = () => {} catch (e) {if (e instanceof Error &&- e.message === CustomError.KEY_MISSING+ e.message == CustomError.KEY_MISSING) {InMemoryStore.set(MS_KEYS.REDIRECT_URL, PAGES.AUTH);router.push(PAGES.ROOT);diff --git a/web/apps/auth/src/services/remote.ts b/web/apps/auth/src/services/remote.tsindex 28d9e59a6b..9885e0b75b 100644--- a/web/apps/auth/src/services/remote.ts+++ b/web/apps/auth/src/services/remote.ts@@ -59,10 +59,7 @@ export const getAuthCodes = async (): Promise<Code[]> => {});return filteredAuthCodes;} catch (e) {- if (- e instanceof Error &&- e.message !== CustomError.AUTH_KEY_NOT_FOUND- ) {+ if (e instanceof Error && e.message != CustomError.AUTH_KEY_NOT_FOUND) {log.error("get authenticator entities failed", e);}throw e;@@ -96,7 +93,7 @@ export const getAuthKey = async (): Promise<AuthKey> => {} catch (e) {if (e instanceof ApiError &&- e.httpStatusCode === HttpStatusCode.NotFound+ e.httpStatusCode == HttpStatusCode.NotFound) {throw Error(CustomError.AUTH_KEY_NOT_FOUND);} else {