π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
sessid is optional
Manav Rathi578b4a65773c
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsxindex dd03afa155..04ea2fa640 100644--- a/web/apps/photos/src/pages/gallery.tsx+++ b/web/apps/photos/src/pages/gallery.tsx@@ -1240,7 +1240,7 @@ export async function handleSubscriptionCompletionRedirectIfNeeded() {const { session_id: sessionID, status, reason } = router.query;- if (status == "success" && typeof sessionID == "string") {+ if (status == "success") {try {const subscription = await verifyStripeSubscription(sessionID);showMiniDialog({diff --git a/web/packages/new/photos/services/user-details.ts b/web/packages/new/photos/services/user-details.tsindex 52f38ae999..995e3a3dc9 100644--- a/web/packages/new/photos/services/user-details.ts+++ b/web/packages/new/photos/services/user-details.ts@@ -316,11 +316,11 @@ export const planUsage = (userDetails: UserDetails) =>* updating our local state to reflect the new subscription on successful* verification.*- * @param sessionID A token passed on completion of the flow. It is forwarded as- * the verification data to remote.+ * @param sessionID Arbitrary and optional string passed on completion of the+ * flow. It is forwarded as the verification data to remote.*/export const verifyStripeSubscription = async (- sessionID: string,+ sessionID: unknown,): Promise<Subscription> => {ensureOk(await fetch(await apiURL("/billing/verify-subscription"), {