Can't Sign-In when a device is forgotten in cognito user pool

0

I want to limit multiple session in my web and the best way I found is tracking the devices and forget the device when a new one sign-in but i found the forgotten devices can't sing-in again the reponse of sign-in is Device does not exist. I suppose when you forgot a device and you sign-in again cognito does not have any track of that device and should allow you to sign-in again.

How can solve this? Thanks!

Jorge
질문됨 일 년 전232회 조회
2개 답변
1
수락된 답변

Jorge, there is another API call in UpdateDeviceStatus which seems it may doo something similar to what you are mentioning without a permanent removal of the device. https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateDeviceStatus.html

This call uses a "remembered | not_remembered" mechanism that may achieve what you are looking to do.

profile pictureAWS
답변함 일 년 전
0
profile pictureAWS
답변함 일 년 전
  • The problem is when I forget a device, AdminListDevices does not return the device forgotten and AdminUpdateDeviceStatus returns "Device does not exist." message if I use the device key forgotten. I liked AdminForgetDevice because it logs out the device you want when you execute it and you don't have to handle a log out method. So it seems I have to handle this logic by my own side. Thanks by the way!

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠