Auth
Main Auth class providing all authentication entry points.
Access via Clerk.auth.
This class provides a centralized, DSL-style API for all authentication operations including:
Sign in with various methods (password, OTP, OAuth, passkey, etc.)
Sign up with various methods
Session management (sign out, set active session, get tokens)
Deep link handling for OAuth/SSO callbacks
Example usage:
// Sign in with email (requires separate sendCode call)
val signIn = clerk.auth.signIn { email = "user@email.com" }
// Sign in with password
val signIn = clerk.auth.signInWithPassword {
identifier = "user@email.com"
password = "password"
}
// Sign in with OTP (automatically sends code)
val signIn = clerk.auth.signInWithOtp { email = "user@email.com" }
// Sign out
clerk.auth.signOut()Properties
Functions
Completes a pending native magic-link flow using callback values from the deep link.
Gets a token for the current session.
Handles a native magic-link deep-link callback and completes the matching auth flow.
Revokes a session.
Sets the active session.
Starts sign-in with an identifier (email, phone, or username).
Signs in with Enterprise SSO.
Signs in with an ID token from an identity provider.
Signs in with OAuth provider.
Signs in with OTP - automatically sends the verification code.
Signs in with passkey.
Signs in with password authentication.
Signs in with a ticket.
Signs out all sessions or removes a specific session from the current client.
Creates a new sign-up with the provided details.
Signs up with Enterprise SSO.
Signs up with Google One Tap.
Signs up with an ID token from an identity provider.
Signs up with OAuth provider.
Signs up with a ticket.
Starts a native email-link sign-in flow secured by PKCE.