joeclark-phd / granite

A model or starter for a Java web application that will be highly-maintainable over a long period of time (20+ years)
0 stars 2 forks source link

implement "refresh token" flow #21

Open joeclark-phd opened 5 years ago

joeclark-phd commented 5 years ago

Authentication with REST API should issue both an access token and a refresh token. Refresh tokens should have a long expiration and there should be an endpoint you can submit the refresh token to get a new access token.

When requesting an access token, the client should also get the precise expiration date for it, so he can know when to refresh.