CognitoIdentityProvider.Client.global_sign_out(**kwargs)¶Signs out users from all devices. It also invalidates all refresh tokens that Amazon Cognito has issued to a user. A user can still use a hosted UI cookie to retrieve new tokens for the duration of the 1-hour cookie validity period.
See also: AWS API Documentation
Request Syntax
response = client.global_sign_out(
AccessToken='string'
)
[REQUIRED]
A valid access token that Amazon Cognito issued to the user who you want to sign out.
{}
Response Structure
The response to the request to sign out all devices.
Exceptions
CognitoIdentityProvider.Client.exceptions.ResourceNotFoundExceptionCognitoIdentityProvider.Client.exceptions.InvalidParameterExceptionCognitoIdentityProvider.Client.exceptions.NotAuthorizedExceptionCognitoIdentityProvider.Client.exceptions.TooManyRequestsExceptionCognitoIdentityProvider.Client.exceptions.PasswordResetRequiredExceptionCognitoIdentityProvider.Client.exceptions.UserNotConfirmedExceptionCognitoIdentityProvider.Client.exceptions.InternalErrorExceptionCognitoIdentityProvider.Client.exceptions.ForbiddenException