8000 Release v0.38.0 · nhost/hasura-auth · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

v0.38.0

Compare
Choose a tag to compare
@github-actions github-actions released this 28 Mar 07:40
· 9 commits to refs/heads/main since this release
7439685

Changes

Potential breaking change

⚠️⚠️⚠️ #617 changes the way refresh tokens work. Previously when you utilized the /token endpoint to refresh the token, the current refresh token was reused in the response. For instance:

POST /token {"refresh_token": "same-random-refresh-token"}
  {"access_token": "...", "refresh_token": "same-random-refresh-token"}

After the #617 the auth service invalidates the used token and returns a new one:

POST /token {"refresh_token": "random-refresh-token"}
  {"access_token": "...", "refresh_token": "some-other-random-refresh-token"}

If you are using our official SDKs this is a transparent change as our SDK already updated the refresh token from the response and you don't need to worry about this change. If you are not using our SDK we recommend you to make sure you are updating the refresh token based on the response prior to upgrading.

0