Skip to Content
You are viewing a beta version of Clerk Docs
Visit the latest docs
Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.com

This method is now deprecated.

verifySession() (deprecated)

Verifies whether a session with a given ID corresponds to the provided session token. Throws an error if the provided ID is invalid.

const sessionId = 'my-session-id'; const token = 'my-session-token'; const session = await clerkClient.sessions.verifySession(sessionId, token);

Required parameters

NameTypeDescription
sessionIdstringThe ID of the session to verify.
tokenstringThe token of the session to verify with.

Last updated on February 22, 2024

What did you think of this content?

Clerk © 2024