From ecb49c32f198ae9242709d940fab182cb125dfd4 Mon Sep 17 00:00:00 2001 From: Ben Hagen Date: Fri, 18 Jul 2025 09:04:28 +0200 Subject: [PATCH] [Auth] Fix TOTP URL generation by removing erroneous % from algorithm parameter --- FirebaseAuth/Sources/Swift/MultiFactor/TOTP/TOTPSecret.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FirebaseAuth/Sources/Swift/MultiFactor/TOTP/TOTPSecret.swift b/FirebaseAuth/Sources/Swift/MultiFactor/TOTP/TOTPSecret.swift index 9791b974e52..b9f1d913920 100644 --- a/FirebaseAuth/Sources/Swift/MultiFactor/TOTP/TOTPSecret.swift +++ b/FirebaseAuth/Sources/Swift/MultiFactor/TOTP/TOTPSecret.swift @@ -47,7 +47,7 @@ import Foundation return "" } return "otpauth://totp/\(issuer):\(accountName)?secret=\(secretKey)&issuer=\(issuer)" + - "&algorithm=%\(hashingAlgorithm)&digits=\(codeLength)" + "&algorithm=\(hashingAlgorithm)&digits=\(codeLength)" } /// Opens the specified QR Code URL in a password manager like iCloud Keychain.