-
Before the major release I could init a if (tokenSet.expired() && tokenSet.data.refresh_token) {
try {
tokenSet = await refresh(tokenSet.data.refresh_token); on that instance. I see how I can refresh a token set via Basically I want access to this: Line 1747 in ff1436e |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Those helpers depended on rewriting the Token Endpoint Response from having I don't want to do that anymore, the intention is to merely return what the AS returned. To that end I suggest that you calculate the expiration time yourself based on the expires_in when you receive it. There's an interaction with missing Alternatively, just use the token until you get
Yeah that wouldn't work because it depends on knowing when the token endpoint response was received from the AS. |
Beta Was this translation helpful? Give feedback.
Those helpers depended on rewriting the Token Endpoint Response from having
expires_in
to having anexpires_at
and thenexpires_in
being a calculated getter. And the return was it's own Class 🙅.I don't want to do that anymore, the intention is to merely return what the AS returned. To that end I suggest that you calculate the expiration time yourself based on the expires_in when you receive it.
There's an interaction with missing
expires_in
that I simply don't want to deal with anymore. The AS doesn't have to return it, not to mention that the AS may revoke the Access Token at any point in time anyway.Alternatively, just use the token until you get
WWWAuthenticateChallengeError
and then…