aws-amplify / amplify-ui

Amplify UI is a collection of accessible, themeable, performant React (and more!) components that can connect directly to the cloud.
https://ui.docs.amplify.aws
Apache License 2.0
783 stars 256 forks source link

FR (Authenticator): Remember Device in Authenticator #1271

Open bestickley opened 2 years ago

bestickley commented 2 years ago

On which framework/platform would you like to see this feature implemented?

React

Which UI component is this feature-request for?

Authenticator

Please describe your feature-request in detail.

Easily configure Authenticator to remember device for MFA enabled user pools.

Please describe a solution you'd like.

Easily configure Authenticator to remember device for MFA enabled user pools.

We love contributors! Is this something you'd be interested in working on?

nk9 commented 2 years ago

This would be great to see. Should it take the form of a simple "Remember this computer" checkbox on the Confirm TOTP Code part of the component? Wherever the checkbox goes, I'd expect it to be automatically shown if the User Pool has a Remember Devices setting of "User Opt-In".

bestickley commented 2 years ago

@nk9, yes, it could show up there, or after the user successfully completed TOTP (or SMS but I haven't tried that MFA config with the new Authenticator yet). I'm not sure which would work best based on API calls. But the next time the user shouldn't have to verify with MFA.

wlee221 commented 2 years ago

This could be generalized to a "remember me" button when you sign in, in conjunction with mfa if needed. We'll need to look into underlying Cognito feature to check the feasibility.

reesscot commented 1 year ago

This feature should be possible since it is currently supported in JS API's: https://docs.amplify.aws/lib/auth/device_features/q/platform/js/