anthonycastelli / Vapor-JWTAuthorization

Vapor JWT Authorization
MIT License
45 stars 2 forks source link

Tokens are valid for 5 min from server start time #2

Closed franciscojrp closed 7 years ago

franciscojrp commented 7 years ago

As what you pass to the expiration claim is only calculated once:

static let AccesTokenValidationLength = Date() + (60 * 5) // 5 Minutes later

after 5 minutes all fresh tokens are already outdated

anthonycastelli commented 7 years ago

Good catch! I always forget about this repository so sorry it has taken me a while to get this upgraded.