setActive
suspend fun setActive(sessionId: String, organizationId: String? = null): ClerkResult<Session, ClerkErrorResponse>
Sets the active session.
Return
A ClerkResult containing the Session on success, or a ClerkErrorResponse on failure.
Example usage:
clerk.auth.setActive(sessionId, organizationId)Content copied to clipboard
Parameters
sessionId
The ID of the session to set as active.
organizationId
Optional organization ID to set as active for the session.