@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
Logout Route
3. Client Configuration
Configure the client SDK to use your custom routes:refreshRoute
and logoutRoute
options.