Skip to main content
getAuthCookieNames(projectId): object
Defined in: packages/server/src/auth/utils/cookies.ts:30 Names of the cookies the session is stored under for a project: crossmint-jwt-<projectId> and crossmint-refresh-token-<projectId>, the same names the client SDK uses. Use them where there is no request object to pass to getSession, such as a Next.js Server Component reading cookies(). The project ID is validateAPIKey(apiKey).projectId.

Parameters

Returns

object

jwt

jwt: string

refreshToken

refreshToken: string