π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix issue
Abhinav4301dd677a9c
diff --git a/apps/photos/src/pages/gallery/index.tsx b/apps/photos/src/pages/gallery/index.tsxindex 5e4aa9bb47..0c0b853ae6 100644--- a/apps/photos/src/pages/gallery/index.tsx+++ b/apps/photos/src/pages/gallery/index.tsx@@ -310,7 +310,7 @@ export default function Gallery() {if (!valid) {return;}- downloadManager.init(APPS.PHOTOS, token);+ downloadManager.init(APPS.PHOTOS, { token });setupSelectAllKeyBoardShortcutHandler();setActiveCollectionID(ALL_SECTION);setIsFirstLoad(isFirstLogin());diff --git a/packages/shared/storage/localStorage/helpers.ts b/packages/shared/storage/localStorage/helpers.tsindex 91970e77fe..0b4f4b8f8c 100644--- a/packages/shared/storage/localStorage/helpers.ts+++ b/packages/shared/storage/localStorage/helpers.ts@@ -2,7 +2,7 @@ import { CustomError } from '@ente/shared/error';import { LS_KEYS, getData, setData } from '.';import { Language } from '@ente/shared/i18n/locale';-export const getToken = () => {+export const getToken = (): string => {const token = getData(LS_KEYS.USER)?.token;if (!token) {throw Error(CustomError.TOKEN_MISSING);