React Native / Expo

Mobile auth for React Native

Add secure sign-in to your React Native or Expo app — hosted login via deep links, pluggable secure storage, and familiar hooks that mirror the rest of the Authdog Web SDK.

Built for mobile

Everything mobile apps need

Deep-link login, secure token storage, and familiar hooks for React Native and Expo.

React Native & Expo

A provider, hooks, and a deep-link login flow built for mobile. Works in Expo and bare React Native alike — react and react-native are the only peers.

Hosted login via deep links

Open the hosted login flow and complete it from the deep link the identity server redirects back to, on both cold and warm starts.

Pluggable secure storage

Bring expo-secure-store, AsyncStorage, or your own async store. Tokens are kept in hardware-backed, encrypted storage when you wire it up.

Secure by default

Tokens are validated as a JWT before storage and the identity host is constrained to the trusted-host allowlist — no token exfiltration.

Familiar hooks

useUser, useSession, useSignIn, and useSignOut mirror the rest of the Authdog Web SDK, so mobile feels like the web you already know.

Typed SDK

A fully typed SDK gives you autocomplete for the session, user, and permissions returned to your screens.

Sign in via deep links

Hosted login, native redirect

Call signIn() to open the hosted login flow, then complete it from the deep link the identity server redirects back to. The SDK validates the token before it ever touches storage, on both cold and warm starts.

SignInScreen.tsx
// SignInScreen.tsx
import { useSignIn, useRedirectHandler } from "@authdog/react-native"
 
const { signIn } = useSignIn()
const { handleRedirect } = useRedirectHandler()
 
// open hosted login, finish via deep link
signIn({ redirectUrl: "myapp://callback" })

Ship mobile auth, not boilerplate

Authdog's React Native SDK handles deep-link login and secure storage, so your screens just read the session from a hook.

1 provider

To wire auth across your app

Wrap your app in AuthdogProvider backed by a secure store and every screen's hooks resolve the verified session.

JWT

Validated before storage

Tokens are verified as a JWT and the identity host is allowlisted, so a malicious redirect can't slip a token into storage.

Pluggable

Secure storage adapters

Use expo-secure-store for hardware-backed encryption, or plug in AsyncStorage or your own async store.

Add auth to your mobile app.

Install the SDK, wrap your app in the provider, and open the hosted login flow today. Free to start, with secure defaults built in.