π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
feat: default to totp
httpjamesm83a17e4d118c
diff --git a/web/packages/accounts/api/user.ts b/web/packages/accounts/api/user.tsindex ff4f703267..0aa534306c 100644--- a/web/packages/accounts/api/user.ts+++ b/web/packages/accounts/api/user.ts@@ -82,7 +82,7 @@ export const verifyTwoFactor = async (code: string, sessionID: string) => {export const recoverTwoFactor = async (sessionID: string,- twoFactorType: TwoFactorType,+ twoFactorType: TwoFactorType = TwoFactorType.TOTP,) => {const resp = await HTTPService.get(`${ENDPOINT}/users/two-factor/recover`, {sessionID,@@ -94,7 +94,7 @@ export const recoverTwoFactor = async (export const removeTwoFactor = async (sessionID: string,secret: string,- twoFactorType: TwoFactorType,+ twoFactorType: TwoFactorType = TwoFactorType.TOTP,) => {const resp = await HTTPService.post(`${ENDPOINT}/users/two-factor/remove`, {sessionID,