ToastShaman / dropwizard-auth-jwt

A Dropwizard authentication filter using JSON Web Token (JWT)
Apache License 2.0
116 stars 50 forks source link

Token expiry #28

Open sheldon-sminq opened 7 years ago

sheldon-sminq commented 7 years ago

What is the default expiry time for a token? Also if a token expires how do we refresh token, without asking the user to re-login.

streetpoet commented 7 years ago

1, the expire time of token should be set by developer when creating the token. 2, you can create 2 token at first time with different expire time, logically mark one as access token, and another as refresh token