Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

clerk-expo-patterns

Skill by FJRG2007

Provides Expo and React Native patterns for Clerk authentication, covering SecureStore token storage, OAuth deep linking and Expo Router protected routes. Aimed at developers building mobile apps with Clerk.

  • Score 64
  • 4 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install clerk-expo-patterns

Built from the published package, never by AI.

git clone --depth 1 https://github.com/FJRG2007/enigma /tmp/enigma && mkdir -p ~/.claude/skills && cp -r /tmp/enigma/assets/skills-registry/clerk-expo-patterns ~/.claude/skills/clerk-expo-patterns

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install clerk-expo-patterns in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives an AI assistant patterns for using Clerk authentication in Expo and React Native apps. It covers persisting session tokens with SecureStore, OAuth sign-in with deep linking, the useAuth hook in native code, Expo Router protected routes, and push notifications with user context. It targets the @clerk/expo package, version 3 or later.

By default Clerk keeps the session token in memory. The skill shows how to pass a tokenCache prop to ClerkProvider, using the built-in cache from @clerk/expo/token-cache, which relies on expo-secure-store. It also includes a Google OAuth example with useSSO, an organization switcher example, and a table of common pitfalls. It is intended for developers building mobile apps with Clerk.

Written from the project's SKILL.md and checked against it.

What it can do

  • SecureStore token cacheStores Clerk tokens in the device keychain using expo-secure-store.
  • OAuth deep linkingSets up OAuth sign-in with useSSO and a deep link scheme in app.json.
  • Expo Router protected routesShows how to protect screens with Expo Router and Clerk.
  • Push notifications with user dataCovers sending push notifications that include user context.
  • Auth hooks in nativeUses useAuth, useUser, useSignIn, useSignUp and useClerk in native components.
  • Organization switchingLists user organization memberships and sets the active organization.

What you need

  • Expo 53 or later
  • React Native 0.73 or later
  • expo-secure-store package
  • Clerk publishable key set as EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY

Try asking

  • Show me how to persist Clerk tokens with SecureStore in my Expo app.
  • Add Google sign-in with useSSO and an OAuth deep link in Expo.
  • Protect my Expo Router screens so signed-out users go to sign-in.

Good to know

  • Clerk keeps tokens in memory by default, so a tokenCache is needed to persist them.
  • Environment variables inside node_modules are not inlined in production builds.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: assets/skills-registry/clerk-expo-patterns/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: WebFetch

Alternatives to clerk-expo-patterns

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

clerk-expo-patterns: common questions

Why are my Clerk tokens lost when the Expo app restarts?

Without a tokenCache prop, Clerk keeps the session token in memory only. Passing tokenCache from @clerk/expo/token-cache stores it in the device keychain through SecureStore.

Why does the OAuth redirect not work in my Expo app?

The source lists a missing scheme in app.json as the cause. It advises adding a scheme such as myapp to app.json.

Which environment variable should hold the Clerk key in Expo?

The source says to use EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY, not NEXT_PUBLIC_, and to pass publishableKey explicitly to ClerkProvider.

How do I install clerk-expo-patterns?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is clerk-expo-patterns free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is clerk-expo-patterns safe to use?

It scores 64 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to clerk-expo-patterns?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

clerk-expo-patterns Install

Add to stack

Loading.