-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User sign-out #26
Comments
Hi Laynel, Once you have an accessToken or idToken there is no sign out. Access and id tokens are valid for an hour. If you don't refresh your tokens they can't be used. You can do a global sign out, which will sign out across all devices and invalidate all access, id and refresh tokens. Using the CognitoIdentityProvider function |
Thanks for your response, Adam. I managed to use
I was also reading about OAuth 2 auth flows. Isn't the Authorization code grant with PKCE a recommended way to authenticate users in native and browsers apps? Even when we are not using Hosted UI. Thus tokens are never actually sent to the client https://aws.amazon.com/blogs/mobile/understanding-amazon-cognito-user-pool-oauth-2-0-grants/ |
Hi, I missed Regarding recommended method for authentication I'm not sure there is a recommended method either way. It depends on what you want. As I understand it, when a web app uses the OAuth2 auth flow, it still sends the access and id tokens to the web app. A server app would need to use the user pools api, and not the OAuth2 auth flow. |
I just started to use this kit, and I am trying to understand how to sign out user?
The text was updated successfully, but these errors were encountered: