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개 답변
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
답변함 일 년 전

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

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

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