Mismatch Between Refresh Token Expiration Handling and Auth0's Absolute Expiration Policy #167
-
I am currently using Auth0 with Absolute Expiration and Refresh Token Rotation. However, I noticed that the library seems to expect the refresh token's expiration time to be renewed with each use. The library renews the expiration time of the refresh token every time I request a new refresh token. Since I am using an absolute expiration policy, the refresh token should not be renewed and should have a fixed expiration time from the initial issuance. This discrepancy causes a mismatch between when the token actually expires and when the library thinks it will expire. Question: Is there a way to configure the library to handle refresh tokens with a fixed expiration time from initial issuance, so it aligns with Auth0's Absolute Expiration policy? If not, are there any plans to support this behavior, or do you have any recommended workarounds? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @kleysonfiretail Also, if the IDP does not return a refresh_token, the library will keep the old one, and the expire time for that. These two mechanism together should result in the behavior you expect. And if all else fail, you do have this config param:
|
Beta Was this translation helpful? Give feedback.
-
Hi @soofstad thank you for answering me Let me give you a little bit more context:
|
Beta Was this translation helpful? Give feedback.
-
@soofstad I took the liberty of creating a PR with the fix for this issue |
Beta Was this translation helpful? Give feedback.
@soofstad I took the liberty of creating a PR with the fix for this issue
#168