Closed AlbertoElias closed 1 week ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Latest commit: a0ad5dd0c22ede507c9e63022af8c4e6b312deec
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Amazing PR, I left just some small comments 👍
Thanks! Replied to your comments!
Description
We were creating the refresh token server side, but weren't using it in the client. This is the first step by receiving it from the auth frame.
This also stores the refresh token as a cookie with the correct expiry closing https://linear.app/crossmint/issue/WAL-2905/%5Brefresh-token%5D-store-refresh-token-in-the-client
And it uses the refresh token to call
/refresh
on page load and before jwt expires to always have up to date session token: https://linear.app/crossmint/issue/WAL-2931/%5Brefresh-token%5D-use-refresh-token-to-fetch-jwtTest plan
Tested manually in combo with this pr and JWT is still fetched correctly and now we also receive the refresh token
Package updates
@crossmint/client-sdk-react-ui@1.3.20
@crossmint/common-sdk-base@1.2.7