roninforge/roninforge-expo/expo-new-protected-flow
Claude Code and agent skill by roninforge/roninforge-expo
- community
Checking that the SKILL.md file is still in the repository.
Scaffolds an Expo Router 55 Stack.Protected authentication flow. Creates a root app/_layout.tsx that gates two route groups (auth) and (app) declaratively using Stack.Protected with a guard prop reading useSession(), an (auth)/_layout.tsx and (auth)/sign-in.tsx for the unauthenticated stack, an (app)/_layout.tsx and (app)/index.tsx for the authenticated stack, and a lib/auth.tsx module that wraps expo-secure-store and exposes useSession plus signIn / signOut. Refuses useEffect-based router.replace auth redirects (which flash the protected route for one frame) and refuses AsyncStorage for token persistence.
Install
npx vskill@latest install roninforge/roninforge-expo/expo-new-protected-flowSKILL.md
The same SKILL.md was published earlier as roninforge/roninforge-expo/expo-new-protected-flow.
expo-new-protected-flow
Use when the user asks for "an auth flow", "a login screen", "protected routes", "sign-in", or "session gating" in an Expo Router 55 project.
Prerequisites
expo-constants is bundled with managed-workflow templates; the install is a no-op there but documenting it keeps bare projects honest.
Files to create
Root layout
lib/auth.tsx
Auth stack
App stack
Refuses
useEffect(() => { if (!session) router.replace("/sign-in") }, ...)(use Stack.Protected; see anti-pattern #33)AsyncStorage.setItem("access_token", ...)(use expo-secure-store; see #1)- Storing tokens in
EXPO_PUBLIC_*env vars (see #2) - Hardcoded OAuth
client_secret(see #3)
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/expo-new-protected-flow/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/roninforge/roninforge-expo/expo-new-protected-flow)