setActive

suspend fun setActive(sessionId: String, organizationId: String? = null): ClerkResult<Session, ClerkErrorResponse>

Sets the active session, useful for multi-session applications.

Parameters

sessionId

The session ID to be set as active

organizationId

The organization ID to be as active in the current session. If null, the currently active organization is removed as active.