What problem does it solve?
This Skill documents patterns and guidance to implement secure, persistent Clerk authentication in Expo and React Native apps to prevent session loss, broken OAuth redirects, and insecure token storage.
Core Features & Use Cases
- Secure token persistence using expo-secure-store and the tokenCache pattern so sessions survive app restarts.
- OAuth deep-link flows using useSSO with custom URL schemes and top-level callback completion to reliably sign users in via Google, Apple, GitHub, and others.
- Expo Router protected routes and layout-level guards that check isLoaded and isSignedIn to avoid flashes and unauthorized access.
- Push notification registration tied to user metadata and organization switching examples for multi-tenant apps.
- Use Case: Add persistent Clerk auth, Google sign-in, protected navigation, and push token registration to an Expo app.
Quick Start
Wrap your Expo app root with ClerkProvider using EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY and pass tokenCache from @clerk/expo/token-cache after installing expo-secure-store.