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 年前322 查看次数
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
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则