Skip to main content

Hosted authentication for Expo, iOS, and Android

Category
SDK
Published

Let users sign in and sign up through the browser with Account Portal, Clerk’s hosted authentication pages

Clerk's mobile SDKs can now hand the entire sign-in and sign-up flow to Account Portal, Clerk's hosted authentication pages. A single method call opens the browser, the user authenticates on your Account Portal, and the created session is activated back in your app.

Because the flow runs through Account Portal, every authentication method enabled on your instance works without building native UI for it: email codes, passwords, social providers, enterprise SSO, and MFA all come along automatically, styled with your Account Portal branding.

Expo

import { useHostedAuth } from '@clerk/expo/hosted-auth'

const { startHostedAuth } = useHostedAuth()

await startHostedAuth()
try await clerk.auth.startHostedAuth()
scope.launch {
  Clerk.auth.startHostedAuth()
}

Hosted authentication is available in @clerk/expo 4.1.0, the Clerk iOS SDK 1.3.5, and the Clerk Android SDK 1.0.37. See the mobile hosted authentication guide to get started.

Contributors
Mike Pitre
Daniel Moerner
Robert Soriano
Sean Perez
Sam Wolfand

Share this article