Refresh Token Expiration Timestamp in "Refresh Grants" Request #927
Closed
bennobuilder
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
|
Any reason why you can't just record the timestamp when you receive the token? You get a new refresh token whenever you use the current one to get a new access token so you should be rotating them at time of use. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there,
It would be beneficial if the API response for the "Refresh Grants" API request included the expiration timestamp of the refresh token.
Example from Etsy Docs:
Why would this be useful for me?
Since Etsy doesn't support the "Client Credentials" Flow, I set the refresh token as an environment variable in my backend app. As the refresh token is only valid for 90 days,
I would like to know (without hardcoding) when it expires to send some sort of notification, so I can create a new refresh token manually. By including the expiration timestamp in the API response, it would allow for better tracking and management of token expiration, ultimately improving the overall user experience.
Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions