perarnborg / vuex-oidc

Vuejs (with vuex) wrapper for open id authentication
MIT License
232 stars 64 forks source link

Use user managers expires_at value to expire access tokens #191

Closed perarnborg closed 2 years ago

perarnborg commented 2 years ago

Fix of problem described in #179

Since access tokens are not always jwts it was incorrect to parse them and check the exp claim. Id tokens and refresh tokens are still parsed as jwts and exp is checked (however if refresh tokens are not valid jwts – which they do not have to be – this will not throw an, but the token will be treated as not expired on the client side.