What are the different ways the API v3 responds when a user revoked their access? #1171
Replies: 2 comments 1 reply
-
I just call this endpoint "https://api.etsy.com/v3/public/oauth/token" with a refresh token , client_id, client_secret and grab the new access_token and refresh token if it's expired |
Beta Was this translation helpful? Give feedback.
-
The important notion is captured in the error code, which typically aligns with HTTP status codes. So, 401 to 403 are used to imply reauthorization is required. Your question about explicit revocation by the user would require you to rerun the OAuth2 authorization process anew to have the user regrant access. Doing as @cyrilchandelier suggests will fail repeatedly, as it only implies an expired access and/or refresh token.
|
Beta Was this translation helpful? Give feedback.
-
So far I have seen two:
refresh_token is revoked
access token has been revoked
But I'm wondering if there are more out there.
Beta Was this translation helpful? Give feedback.
All reactions