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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南