Cognito remember devices

0

For a user pool under device tracking I have it set to user opt-in and allow users to bypass MFA for trusted devices set to yes. However I'm never presented with the option to remember my browser when I'm prompted to login. Also I notice that the cookies issued have no expiration and are per session. I want the option to remember browsers and cookies to remain persistent, what am I missing?

asked 2 years ago602 views
1 Answer
0

Hello m1systems, I understand that you are having difficulty getting your device to remember your credentials. A probable reason for this issue is that you have not enabled remember device function
Please refer to this article and scroll down to the (Optional) Call UpdateDeviceStatus for detailed information: https://aws.amazon.com/premiumsupport/knowledge-center/cognito-user-pool-remembered-devices/

The step you would want to complete would be the "If you choose User Opt In, then you must include an UpdateDeviceStatus API call."

If you select User Opt-In, you can remember devices only when your application's users opt to do so. When a user signs in with a new device, the response from the request to initiate tracking indicates whether the user should be prompted about remembering their device. You must create the user interface to prompt users. If the user opts to have the device remembered, the device status is updated with a 'remembered' state.

This documentation will explain how to complete the next task:
https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html#amazon-cognito-user-pools-setting-up-remembered-devices

You must also create the user interface to prompt users. If the user opts to have the device remembered, the device status is updated with a 'remembered' state. For your cookies to stay persistent, for hosted UI we don’t have mechanism to configure cookie settings but rather change default duration for access and ID token

Please let us know if you have any further questions. We are happy to assist you!
Issac_A
answered 2 years ago
  • So just to clarify there's no option to remember devices through the AWS hosted forms then?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions