Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerkstage.dev

Authentication Object

Properties

NameDescription
actorHolds identifier for the user that is impersonating the current user
debugUsed to help debug issues when using Clerk in development
getTokenA function that returns a promise that resolves to the current user's session token; can also be used to retrieve a custom JWT template
orgIdThe current user's organization ID
orgRoleThe current user's organization role
orgSlugThe current user's organization slug
organizationThe current user's organization object
sessionClaimThe current user's session claim
sessionIdThe current user's session ID
userIdThe current user's unique identifier

Example

{ sessionId: 'sess_2GaMqUCB3Sc1WNAkWuNzsnYVVEy', userId: 'user_2F2u1wtUyUlxKgFkKqtJNtpJJWj', orgId: null, getToken: [AsyncFunction (anonymous)], claims: { azp: 'http://localhost:3000', exp: 1666622607, iat: 1666622547, iss: 'https://clerk.quiet.muskox-85.lcl.dev', nbf: 1666622537, sid: 'sess_2GaMqUCB3Sc1WNAkWuNzsnYVVEy', sub: 'user_2F2u1wtUyUlxKgFkKqtJNtpJJWj' } }

What did you think of this content?

Clerk © 2023