π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Document
Manav Rathi206be5c16f00
diff --git a/web/apps/auth/src/pages/auth.tsx b/web/apps/auth/src/pages/auth.tsxindex 86015247e6..e1c69f1da5 100644--- a/web/apps/auth/src/pages/auth.tsx+++ b/web/apps/auth/src/pages/auth.tsx@@ -176,7 +176,6 @@ const CodeDisplay: React.FC<CodeDisplay> = ({ codeInfo }) => {try {const currentTime = new Date().getTime();if (codeInfo.type.toLowerCase() === "totp") {- console.log({ codeInfo });const totp = new TOTP({secret: codeInfo.secret,algorithm: codeInfo.algorithm,diff --git a/web/apps/auth/src/services/code.ts b/web/apps/auth/src/services/code.tsindex 4fe134835f..ddac5a9202 100644--- a/web/apps/auth/src/services/code.ts+++ b/web/apps/auth/src/services/code.ts@@ -19,7 +19,7 @@ export class Code {constructor(account: string,issuer: string,- digits: number | undefined,+ digits: number,period: number,secret: string,algorithm: Algorithm,@@ -39,6 +39,14 @@ export class Code {}}+/**+ * Convert a "raw" OTP secret URL into its parse representation, a {@link Code}.+ *+ * An example {@link rawData}:+ *+ * otpauth://totp/account:[email protected]?algorithm=SHA1&digits=6&issuer=issuer&period=30&secret=ALPHANUM+ *+ */export const codeFromRawData = (id: string, rawData: string): Code => {let santizedRawData = rawData.replace(/\+/g, "%2B")