supabase-mobile-auth

supabase-mobile-auth is a skill for Claude Code from AnilBurcu/claude-code-react-native. It costs 48 tokens per session (1,091 once invoked), scanned A, original, MIT.

A reference for using Supabase, a hosted database and authentication service, in React Native mobile apps. It covers sign-in, sessions, deep links, database access, and row-level security policies that control which data users can access.

In plain words
What is it for?
Use it to add Apple, Google, or email sign-in, keep users signed in, connect authentication links, and fix access rules or network problems.
Why use it?
It helps prevent mobile login failures, expired sessions, blocked database requests, broken sign-in links, and requests that hang on slow connections.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the rn plugin — 18 skills, 4 agents shipped together

Good fit Use it to add Apple, Google, or email sign-in, keep users signed in, connect authentication links, and fix access rules or network problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anilburcu/claude-code-react-native/supabase-mobile-auth
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AnilBurcu/claude-code-react-native --skill supabase-mobile-auth
Clone the repo
git clone --depth 1 https://github.com/AnilBurcu/claude-code-react-native

Made for: Claude Code.

Or install rn, the plugin that ships this one along with the rest of its 18 skills, 4 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for supabase-mobile-auth

README.md
[![agentmods](https://agentmods.dev/badge/skills/anilburcu/claude-code-react-native/supabase-mobile-auth/github.svg)](https://agentmods.dev/skills/anilburcu/claude-code-react-native/supabase-mobile-auth)
Your own site
<a href="https://agentmods.dev/skills/anilburcu/claude-code-react-native/supabase-mobile-auth"><img src="https://agentmods.dev/badge/skills/anilburcu/claude-code-react-native/supabase-mobile-auth/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for supabase-mobile-auth

Your own site · 80×15
<a href="https://agentmods.dev/skills/anilburcu/claude-code-react-native/supabase-mobile-auth"><img src="https://agentmods.dev/badge/skills/anilburcu/claude-code-react-native/supabase-mobile-auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,091 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.01091
Opus 5.5 $0.00019 $0.00436
Sonnet 5.5 $0.00010 $0.00218
Haiku 4.5 $0.00005 $0.00109

Measured 2mo ago against content hash 08f315a4a4d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

supabase-mobile-auth scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/rn/skills/supabase-mobile-auth/SKILL.md · 48 lines

How it starts

The opening of the file, as written. The whole thing — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Supabase in a mobile app, the parts the docs gloss over

Native sign-in beats browser redirects

On mobile, prefer token-based native flows over web OAuth redirects. The user stays in the app, there is no browser handoff to break, and no deep-link dance:

  • Apple: the native Sign in with Apple sheet returns an identity token; pass it to signInWithIdToken. Hash the nonce (SHA-256) into the Apple request and pass the raw nonce to Supabase, and remember Apple only returns the user's name on the FIRST authorization, so persist it immediately or lose it.
  • Google: the native Google sign-in SDK returns an id token for signInWithIdToken. Check whether your chosen Google sign-in library supports a nonce parameter. Some do not, and then Supabase's nonce check fails; the "skip nonce check" switch in the Supabase dashboard exists for exactly that case. Prefer a nonce-capable library when starting fresh, and treat the skip switch as a documented tradeoff rather than a mystery setting.
  • Email: OTP codes (signInWithOtp then verifyOtp) avoid deep links entirely, which on mobile removes a whole class of "the magic link opened the wrong thing" support tickets.

With only native flows, no URL detection is needed: detectSessionInUrl: false, and deep-link handling stays out of the auth path entirely.

Session storage and refresh

  • Supply an explicit storage adapter. Working choices: encrypted MMKV (fast, sturdy), AsyncStorage or an encrypted wrapper over it (Supabase's documented default), or SecureStore with care, since sessions are larger than what some iOS releases historically accepted per value.
  • Refresh needs the app-state pattern: start auto-refresh when the app becomes active, stop it in the background. A refresh that fires while the app is suspended can rotate the token without persisting the result, and the next launch presents a stale refresh token, which trips refresh-token-reuse detection and signs the user out.
  • Serialize concurrent refreshes. Two simultaneous getSession calls both trying to refresh is another reuse-detection trigger; a simple in-process mutex around refresh ends it.
  • On sign-out, also clear the persisted session storage explicitly. Belt and suspenders, but a cached session resurrecting a signed-out account is a real bug class and clearing storage is one line.
  • Copy-ready wiring for all of the above (storage adapter, refresh lifecycle, serial lock, fetch timeout) is in reference.md.

Read the full file on GitHub · 48 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · -16 tokens per session 08f315a4a4d6
  2. 3mo ago First seen · 48 lines · 64 tokens per session scan A f477a1f8343c

Subscribe to this mod's changes

supabase-mobile-auth is a skill published in the GitHub repository AnilBurcu/claude-code-react-native (2 stars, last pushed 25d ago), licensed MIT. It adds 48 tokens to every session and 1,091 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

supabase-mobile-auth compared with skills from other repositories

supabase-mobile-auth next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
supabase-mobile-authAnilBurcu/claude-code-react-nativeSkill225d agoMITA48Claude Code
expo-56mahdi-salmanzade/expo56-skillSkill24mo agoMITA391Claude Code
expoericrisco/rsc-harnessSkill6916d agoMITA79Claude Code, Codex
rn-module-addlukedj78/dev-flowSkill52d agoMITA256Claude Code
fec-pwa-implementationbovinphang/frontend-craftSkill2414d agoMITA87Claude Code
rn-backendlukedj78/dev-flowSkill52d agoMITA178Claude Code
rn-data-fetchinglukedj78/dev-flowSkill52d agoMITA141Claude Code