Skip to content

Commit d84dbf1

Browse files
committed
Support passkey authenticator type
1 parent 02c5fb7 commit d84dbf1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/src/authenticator.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ enum AuthenticatorType {
1616
oobOtpEmail,
1717
oobOtpSms,
1818
totp,
19+
passkey,
1920
unknown,
2021
}
2122

@@ -30,6 +31,8 @@ extension AuthenticatorTypeExtension on AuthenticatorType {
3031
return "oob_otp_sms";
3132
case AuthenticatorType.totp:
3233
return "totp";
34+
case AuthenticatorType.passkey:
35+
return "passkey";
3336
case AuthenticatorType.unknown:
3437
return "unknown";
3538
}
@@ -45,6 +48,8 @@ extension AuthenticatorTypeExtension on AuthenticatorType {
4548
return AuthenticatorType.oobOtpSms;
4649
case "totp":
4750
return AuthenticatorType.totp;
51+
case "passkey":
52+
return AuthenticatorType.passkey;
4853
default:
4954
return AuthenticatorType.unknown;
5055
}

0 commit comments

Comments
 (0)