Skip to content
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

Usage of ID token #3

Open
nnurmano opened this issue Sep 26, 2017 · 1 comment
Open

Usage of ID token #3

nnurmano opened this issue Sep 26, 2017 · 1 comment

Comments

@nnurmano
Copy link

The AWS documentation says "The ID token expires one hour after the user authenticates. You should not process the ID token in your client or web API after it has expired." Taking into account the above statement, it still OK to use ID token in your code?

@ddewaele
Copy link
Contributor

We currently do not support refresh tokens and leave that up to the client (typically a webapp / mobile app).

The way the library is currently setup / used in-house is purely to authenticate / authorise request based on a JWT containing the ID Token. The mobile app (that also handles login / signup) is responsible for validating the ID token and refreshing it if needed

We can look into supporting Cognito refresh tokens also ... if you have any suggestions / use-cases feel free...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants