Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerkstage.dev

getToken()

Retrieves a specific session's token.

const sessionId = 'my-session-id'; const session = await clerkClient.sessions.getToken(sessionId);

Required parameters

NameTypeDescription
sessionIdstringThe ID of the session to retrieve a token for.

What did you think of this content?

Clerk © 2023