Closed dkliss closed 8 months ago
Hi @dkliss, this is expected behavior. Calling forgetDevice
wipes the device keys that rememberDevice
requires in order to save the device. This leads to the DeviceNotTrackedException
that you're receiving. In order to get the device keys again, the user would have to log out and log in again. I'm going to close this issue now but if you have any further questions or other issues, feel free to reopen this issue or open a new one, thanks.
Hi @dkliss, this is expected behavior. Calling
forgetDevice
wipes the device keys thatrememberDevice
requires in order to save the device. This leads to theDeviceNotTrackedException
that you're receiving. In order to get the device keys again, the user would have to log out and log in again. I'm going to close this issue now but if you have any further questions or other issues, feel free to reopen this issue or open a new one, thanks.
Thanks you @khatruong2009 for confirming. Seems like this is how it is supposed to work.
Description
Hi,
Once a user has Signed In, I have an option for user to "Remember my device or Forget my device" which uses below functions.
The Cognito is set to
If I select remember my device, then sign out and sign in again, MFA is not required, which works as expected.
However, if I do below sequence below I get exception:
So in summary, after i i select forget device, I cannot run remember my device again without signing out and sign in again? Is this expected? Seems not correct unless I am missing something.
To reproduce:
Categories
Steps to Reproduce
No response
Screenshots
No response
Platforms
Flutter Version
3.19.1
Amplify Flutter Version
1.6.1
Deployment Method
Amplify CLI
Schema
No response