I have been trying to implement logout functionality across all devices by calling the globalSignOut
method, but it's not working.
My code
await cognito
.globalSignOut({
AccessToken: tokenResponse?.signInUserSession.accessToken?.jwtToken,
})
.promise();
return {
success: true,
};
}