@crossmint/server-sdk.
1. Configure Cookie Options
When initializing the server SDK, configure secure cookie options: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. Custom Routes Implementation
Token Refresh Route
- Next.js (App Router)
- Express.js
Logout Route
- Next.js (App Router)
- Express.js
3. Client Configuration
Configure the client SDK to use your custom routes:- TypeScript
- React
refreshRoute and logoutRoute options.
