π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Handle steam code generation
Neeraj Gupta9a921c314a58
diff --git a/auth/lib/utils/totp_util.dart b/auth/lib/utils/totp_util.dartindex 61c7f20e92..f886215081 100644--- a/auth/lib/utils/totp_util.dart+++ b/auth/lib/utils/totp_util.dart@@ -4,7 +4,7 @@ import 'package:otp/otp.dart' as otp;import 'package:steam_totp/steam_totp.dart';String getOTP(Code code) {- if (code.type == Type.steam) {+ if (code.type == Type.steam || code.issuer.toLowerCase() == 'steam') {return _getSteamCode(code);}if (code.type == Type.hotp) {@@ -39,7 +39,7 @@ String _getSteamCode(Code code, [bool isNext = false]) {}String getNextTotp(Code code) {- if (code.type == Type.steam) {+ if (code.type == Type.steam || code.issuer.toLowerCase() == 'steam') {return _getSteamCode(code, true);}return otp.OTP.generateTOTPCodeString(