Access Token Expiration after 24 hours

We have it set to 14 days. It still doesn’t stop us sending expired access tokens.

It looks like we need to

  1. manually validate if the access token is expired

and
2. Provide a callback afterRefresh because getAccessToken is synchronous.
So then we need to add in extra logic that… I don’t even know.

We have to validate the access token but then if it’s invalid we have to except a callback… Odd way to code

Why doesn’t it do it silently in the background? Like I would configure Axios interceptors to refresh

1 Like