0

与使用从所有活动会话中注销的 globalSignout 相比,我如何使用 aws sdk 仅从一个会话中注销用户?

我环顾了其他几个问题。其中之一提到使用 AdminForgetDevice 方法,该方法将强制用户注销。但我不知道 DeviceKey 是什么,我从哪里得到它?

管理员忘记设备:https ://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminForgetDevice.html

4

1 回答 1

2

找到撤销令牌 api:https ://docs.aws.amazon.com/cognito/latest/developerguide/token-revocation.html

通过发送使活动会话无效并注销用户的用户名和刷新令牌来使用此 api。

于 2021-10-26T02:47:55.040 回答