π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Enable noImplicitReturns
Manav Rathib9fe50956769
diff --git a/web/apps/auth/tsconfig.json b/web/apps/auth/tsconfig.jsonindex 3274060512..91a9629146 100644--- a/web/apps/auth/tsconfig.json+++ b/web/apps/auth/tsconfig.json@@ -14,7 +14,7 @@"strict": false,/* Stricter than strict */- "noImplicitReturns": false,+ "noImplicitReturns": true,"noUnusedParameters": false,"noUnusedLocals": false,"noFallthroughCasesInSwitch": false,diff --git a/web/packages/accounts/pages/credentials.tsx b/web/packages/accounts/pages/credentials.tsxindex 675004e0a5..241ea9cef2 100644--- a/web/packages/accounts/pages/credentials.tsx+++ b/web/packages/accounts/pages/credentials.tsx@@ -168,7 +168,7 @@ export default function Credentials({ appContext, appName }: PageProps) {window.location.href = `${getAccountsURL()}/passkeys/flow?passkeySessionID=${passkeySessionID}&redirect=${window.location.origin}/passkeys/finish`;- return;+ return undefined;} else if (twoFactorSessionID) {const sessionKeyAttributes =await cryptoWorker.generateKeyAndEncryptToB64(kek);diff --git a/web/packages/shared/crypto/internal/libsodium.ts b/web/packages/shared/crypto/internal/libsodium.tsindex 7e3c1b5cc7..8ae707ff73 100644--- a/web/packages/shared/crypto/internal/libsodium.ts+++ b/web/packages/shared/crypto/internal/libsodium.ts@@ -308,6 +308,7 @@ export async function deriveSensitiveKey(passphrase: string, salt: string) {memLimit /= 2;}}+ throw new Error("Failed to derive key: Memory limit exceeded");}export async function deriveInteractiveKey(passphrase: string, salt: string) {diff --git a/web/packages/shared/themes/components.ts b/web/packages/shared/themes/components.tsindex cbda6e7271..7692ee8dd3 100644--- a/web/packages/shared/themes/components.ts+++ b/web/packages/shared/themes/components.ts@@ -216,4 +216,5 @@ function getIconColor(ownerState, colors: ThemeColorsOptions) {color: colors.stroke.faint,};}+ return {};}diff --git a/web/packages/shared/utils/index.ts b/web/packages/shared/utils/index.tsindex 8b46f62670..b71808d466 100644--- a/web/packages/shared/utils/index.ts+++ b/web/packages/shared/utils/index.ts@@ -26,6 +26,12 @@ export function isPromise<T>(obj: T | Promise<T>): obj is Promise<T> {export async function retryAsyncFunction<T>(request: (abort?: () => void) => Promise<T>,waitTimeBeforeNextTry?: number[],+ // Need to use @ts-ignore since this same file is currently included with+ // varying tsconfigs, and the error is only surfaced in the stricter ones of+ // them.+ //+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment+ // @ts-ignore TSC fails to detect that the exit of the loop is unreachable): Promise<T> {if (!waitTimeBeforeNextTry) waitTimeBeforeNextTry = [2000, 5000, 10000];