SohoHouse / nuxt-oauth

Simple OAuth2 integration for your Nuxt app
MIT License
122 stars 27 forks source link

fix(refresh): Properly pass expires to OAuth Token definition #84

Open Sikwan opened 3 years ago

Sikwan commented 3 years ago

Currently, it seems the expires value is not passed within the OAuth2 created token, which in turn makes it impossible to rely on the token.expired() mechanic to handle refreshes.

It is unclear to me if that happen only when reloading the token from the Session or all the time, the case I fixed on my end was from loading an already existing session.