clerk-expo

Implement Clerk authentication in Expo and React Native apps with token caching.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/awfixers-stuff/forged.codes --skill clerk-expo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clerk-expo
Source: https://github.com/awfixers-stuff/forged.codes/tree/main/.agents/skills/clerk-expo
Command: npx skills add https://github.com/awfixers-stuff/forged.codes --skill clerk-expo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps you implement secure, correct Clerk authentication in Expo / React Native apps without guessing the right native setup details.

Core Features & Use Cases

  • Expo / React Native Clerk integration: Sets up <ClerkProvider> with the correct publishableKey wiring and token persistence using @clerk/expo/token-cache.
  • Flow-specific implementation guidance: Guides you to choose and implement either prebuilt UI components (AuthView, UserButton) or custom hook-driven flows (useSignIn, useSignUp, useSSO) based on your app and requirements.
  • Source-driven, status-accurate behavior: Ensures custom flows follow Clerk hook return/status semantics and match the installed @clerk/expo behavior.
  • Safety and gating: Enforces prerequisites like flow choice, required keys, correct platform/build usage (not Expo Go for native hooks), and required environment checks for custom strategy coverage.

Quick Start

Ask the agent: “Implement Clerk authentication for my Expo React Native app using @clerk/expo with the prebuilt AuthView/UserButton flow, and use this publishable key: <PASTE_KEY>.”

Frequently Asked Questions about clerk-expo

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

FAQPage Schema
How do I add Clerk authentication to an Expo React Native app?

To add Clerk authentication to an Expo React Native app, wire the ClerkProvider with a real publishableKey and configure token persistence using @clerk/expo/token-cache for secure native sessions.

Can I use Clerk prebuilt UI components in Expo React Native?

Yes, you can use Clerk prebuilt UI components like AuthView and UserButton in Expo React Native by selecting the prebuilt flow option during setup for quick integration without custom hooks.

How do I build a custom Clerk sign-in flow with hooks in React Native?

Build a custom Clerk sign-in flow in React Native using useSignIn, useSignUp, and useSSO hooks, ensuring you perform an environment-driven enabled-factor coverage check for native strategy support.

Does Clerk authentication with native hooks work in Expo Go?

No, Clerk authentication with native hooks does not work in Expo Go; you must use a correct native build configuration or development build to support native session and OAuth SSO functionality.

What is the best way to cache Clerk tokens in an Expo application?

The best way to cache Clerk tokens in an Expo application is using the tokenCache utility from @clerk/expo/token-cache, which handles secure token persistence for native sessions.

Why does my custom Clerk flow fail to recognize enabled authentication factors?

Custom Clerk flows fail to recognize enabled authentication factors if you skip the /v1/environment?_is_native=true check, which is required to verify native strategy coverage.