getToken

Gets a token for the current session.

Return

A ClerkResult containing the token string on success, or a ClerkErrorResponse on failure.

Example usage:

val token = clerk.auth.getToken()
// or with options
val token = clerk.auth.getToken(GetTokenOptions(template = "my-template"))

Parameters

options

Optional token retrieval options.