Skip to content

Commit 2baa047

Browse files
committed
Rewrite TODOs
1 parent 4fa2fcc commit 2baa047

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

packages/amplify_core/lib/src/types/auth/sign_in/auth_factor_type.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ enum AuthFactorType {
2525
@JsonValue('SMS_OTP')
2626
smsOtp('SMS_OTP');
2727

28+
// TODO(cadivus): Implement Passwordless Authenticator. See:
29+
// https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow-methods.html#amazon-cognito-user-pools-authentication-flow-methods-passkey
30+
// https://docs.amplify.aws/react/build-a-backend/auth/concepts/passwordless/#webauthn-passkey
2831
// /// Sign in with WebAuthn (i.e. PassKey)
2932
// @JsonValue('WEB_AUTHN')
3033
// webAuthn('WEB_AUTHN');

packages/authenticator/amplify_authenticator/lib/src/blocs/auth/auth_bloc.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,9 @@ class StateMachineBloc
264264
case AuthSignInStep.continueSignInWithFirstFactorSelection:
265265
case AuthSignInStep.confirmSignInWithOtp:
266266
case AuthSignInStep.confirmSignInWithPassword:
267-
// TODO(tyllark): Passwordless Authenticator.
267+
// TODO(cadivus): Implement Passwordless Authenticator. See:
268+
// https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow-methods.html#amazon-cognito-user-pools-authentication-flow-methods-passkey
269+
// https://docs.amplify.aws/react/build-a-backend/auth/concepts/passwordless/#webauthn-passkey
268270
_exceptionController.add(
269271
AuthenticatorException(
270272
'Passwordless is not supported at this time. Please try again.',

packages/authenticator/amplify_authenticator/lib/src/services/amplify_auth_service.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ abstract class AuthService {
2626

2727
Future<SignUpResult> confirmSignUp(String username, String code);
2828

29-
// TODO(tyllark): Passwordless Authenticator.
29+
// TODO(cadivus): Implement Passwordless Authenticator. See:
30+
// https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow-methods.html#amazon-cognito-user-pools-authentication-flow-methods-passkey
31+
// https://docs.amplify.aws/react/build-a-backend/auth/concepts/passwordless/#webauthn-passkey
3032
//Future<SignInResult> autoSignIn();
3133

3234
Future<AuthUser?> get currentUser;
@@ -152,7 +154,9 @@ class AmplifyAuthService
152154
);
153155
}
154156

155-
// TODO(tyllark): Passwordless Authenticator.
157+
// TODO(cadivus): Implement Passwordless Authenticator. See:
158+
// https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow-methods.html#amazon-cognito-user-pools-authentication-flow-methods-passkey
159+
// https://docs.amplify.aws/react/build-a-backend/auth/concepts/passwordless/#webauthn-passkey
156160
// @override
157161
// Future<SignInResult> autoSignIn() {
158162
// return _withUserAgent(() => Amplify.Auth.autoSignIn());

0 commit comments

Comments
 (0)