π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
ed
Manav Rathi8899157c4786
diff --git a/web/apps/auth/eslint.config.mjs b/web/apps/auth/eslint.config.mjsindex 343e138f71..24a9bd9277 100644--- a/web/apps/auth/eslint.config.mjs+++ b/web/apps/auth/eslint.config.mjs@@ -7,8 +7,6 @@ export default [// We want to turn this off globally, but after having revisited all// existing uses."@typescript-eslint/prefer-nullish-coalescing": "off",- /** TODO: Disabled as we migrate, try to prune these again */- "react-hooks/exhaustive-deps": "off",},},];diff --git a/web/apps/auth/src/pages/auth.tsx b/web/apps/auth/src/pages/auth.tsxindex d104c36dda..320ad15a17 100644--- a/web/apps/auth/src/pages/auth.tsx+++ b/web/apps/auth/src/pages/auth.tsx@@ -38,9 +38,6 @@ const Page: React.FC = () => {const [hasFetched, setHasFetched] = useState(false);const [searchTerm, setSearchTerm] = useState("");- const showSessionExpiredDialog = () =>- showMiniDialog(sessionExpiredDialogAttributes(logout));-useEffect(() => {const fetchCodes = async () => {const masterKey = await masterKeyFromSessionIfLoggedIn();@@ -54,13 +51,14 @@ const Page: React.FC = () => {setCodes(await getAuthCodes(masterKey));} catch (e) {log.error("Failed to fetch codes", e);- if (isHTTP401Error(e)) showSessionExpiredDialog();+ if (isHTTP401Error(e))+ showMiniDialog(sessionExpiredDialogAttributes(logout));}setHasFetched(true);};void fetchCodes();showNavBar(false);- }, []);+ }, [router, showNavBar, showMiniDialog, logout]);const lcSearch = searchTerm.toLowerCase();const filteredCodes = codes.filter(