clerk-expo-patterns

Implement Clerk authentication patterns for Expo and React Native apps.

Updated Jun 20, 2026
One-click install
npx skills add https://github.com/sudarshan-krishnan/Sentinel_AIHackathon_Berkley_2026 --skill clerk-expo-patterns-sudarshan-krishnan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clerk-expo-patterns
Source: https://github.com/sudarshan-krishnan/Sentinel_AIHackathon_Berkley_2026/tree/main/app/.agents/skills/clerk-expo-patterns
Command: npx skills add https://github.com/sudarshan-krishnan/Sentinel_AIHackathon_Berkley_2026 --skill clerk-expo-patterns-sudarshan-krishnan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers implement Clerk authentication correctly in Expo and React Native apps, avoiding common issues with token persistence, OAuth redirects, route protection, and user context.

Core Features & Use Cases

  • Persistent sign-in: Keep sessions alive across app restarts with SecureStore-backed token storage.
  • OAuth deep linking: Configure native sign-in flows for providers like Google, Apple, and GitHub using a custom app scheme and callback screen.
  • Protected routing: Gate Expo Router layouts and screens so unauthenticated users are redirected cleanly.
  • User and organization context: Render profile details, switch active organizations, and attach push notification tokens to the signed-in user.
  • Use case: A mobile team can use these patterns to ship Clerk-powered authentication, protected tabs, and organization switching without fragile auth logic.

Quick Start

Ask for the specific Expo Clerk pattern you need, such as wrapping the app with ClerkProvider, persisting tokens with SecureStore, or implementing OAuth and protected routes.

Frequently Asked Questions about clerk-expo-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I persist Clerk authentication sessions across app restarts in Expo?

Clerk authentication sessions persist across Expo app restarts by configuring a SecureStore-backed token cache within ClerkProvider, ensuring encrypted tokens remain available locally for automatic sign-in restoration.

How do I set up OAuth deep linking for Google or Apple sign-in with Clerk and Expo Router?

Setting up OAuth deep linking for Clerk in Expo requires configuring a custom app scheme and a dedicated callback screen to handle native sign-in redirects for providers like Google, Apple, and GitHub via useSSO.

What is the best way to protect Expo Router screens for unauthenticated users with Clerk?

The best way to protect Expo Router screens with Clerk involves using useAuth guards within your layout files to check session status and cleanly redirect unauthenticated users away from gated screens.

Can I switch active organizations in a React Native app using Clerk?

You can switch active organizations in React Native using Clerk by implementing useOrganizationList hooks to manage organization switching logic and update the user's active organization context.

Does Clerk work with Expo Router for managing user profile rendering?

Clerk works with Expo Router for user profile rendering by leveraging the useUser hook to fetch and display signed-in user details directly within your React Native components.