cognito signout

0

hey there iam using aws sdk in which i am using Class: AWS.CognitoIdentityServiceProvider for cognito methods. for user log out i am using globalSignOut to signout user. The issue i am facing whenever this method is called call the accessToken issue to particular user revoked. if user is signed with same email on multiple device when try to logout on a specific device all accessToken of there devices revoked. so i want only the user with particular device get logout and only single accessToken revoked . is there any way to achieve this i cant find any methods for this .

1 Antwort
0

You can use the Cognito logout endpoint to for logout . This will delete the session cookie. Refer to this link https://docs.aws.amazon.com/cognito/latest/developerguide/logout-endpoint.html Please refer to this post for the differences between logout endpoint and global logout https://repost.aws/knowledge-center/cognito-logout-endpoint-globalsignoutapi

AWS
Gaurav
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen