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.
Signs the current user in on the web and loads destination in webView.
Signs the current user in on the web and opens destination in the user's default browser.
Prepares a URL that signs the current user in on the web and then lands on destination.
Revokes a session.
Sets the active session.
Starts sign-in with an identifier (email, phone, or username).
Signs in with a locally enrolled biometric credential.
Signs in with Enterprise SSO.
Signs in with Google One Tap (Credential Manager's Sign in with Google).
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.
Silently signs in with a Google Play restore credential transferred from another device.
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.
Starts a native email-link sign-in flow secured by PKCE and sends the link to emailAddressId, the emailAddressId of one of the sign-in's email_link first factors.
Opens Account Portal in a system browser and activates the session created there.
Turns the current sign-up into a sign-in for its already existing account.
Turns the current sign-in into a sign-up when its external account has no Clerk user yet.