@crossmint/server-sdk.
1
Configure the cookie options
When initializing the server SDK, configure secure cookie options:Note: The
httpOnly flag only applies to the refresh token. The session JWT remains accessible to client-side JavaScript since it’s needed for API calls.2
Add the token refresh route
- Next.js (App Router)
- Express.js
3
Add the logout route
- Next.js (App Router)
- Express.js
4
Configure the client SDK
Configure the client SDK to use your custom routes:Note: Depending on the framework you’re using, you might need to set the whole URL in the
- TypeScript
- React
refreshRoute and logoutRoute options.
