[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F24Z1N05C8A0VTSTEXCBPR":3,"skill-same:01M7F24Z1N05C8A0VTSTEXCBPR":423},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7F24Z1N05C8A0VTSTEXCBPR","auth-and-secure-storage",null,"Builds sign-in - tokens in expo-secure-store, shared refresh, protected routes, OAuth PKCE, Apple sign-in. Use when adding login, tokens, 401 retries, logout or account deletion. Not for API calls (networking-and-server-state).","zakariaf\u002FReactNative-Skills","zakariaf","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2259803?v=4","01M7DEF0YMPS6Y6RQ4WGA0JH9R","Zakaria Fatahi","01M7F1VKYEK96M7SYJE1EPGD0A",13,"MIT","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: auth-and-secure-storage\ndescription: Builds sign-in - tokens in expo-secure-store, shared refresh, protected routes, OAuth PKCE, Apple sign-in. Use when adding login, tokens, 401 retries, logout or account deletion. Not for API calls (networking-and-server-state).\n---\n\n# Auth and secure storage\n\nMakes sign-in safe and complete on iOS and Android: tokens live only in the Keychain or Keystore behind\none port, one session manager restores, refreshes and ends the session without races, route groups open\nand close with it, OAuth runs the code flow with PKCE, Sign in with Apple uses a nonce, and sign-out\nleaves nothing of the last person behind. A zero-dependency checker proves the structure; Jest tests\nprove the behaviour.\n\n## Rules that must hold\n\n1. **Tokens live only in expo-secure-store, behind `SecureStoragePort`.** One adapter imports the SDK\n   and passes one frozen options object (`keychainAccessible: AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY`) to\n   every async call; never `getItem`\u002F`setItem`, never `ALWAYS`, no `requireAuthentication` on session\n   tokens. Why: a read with other options finds nothing; `WHEN_UNLOCKED` breaks background refresh;\n   biometrics prompt on every Android read and a new fingerprint signs people out.\n   (`vendor-import`, `secure-store-call`)\n2. **A credential appears nowhere else.** Not in SQLite, kv-store, AsyncStorage, MMKV or files, not in a\n   Zustand store (not even a bare `token` field), not in a log, crash report or analytics event, not in\n   a TanStack mutation (its cache keeps variables and data), not in a URL, never in `EXPO_PUBLIC_*`.\n   Why: none of those is encrypted with a hardware key, and logs, backups and URLs travel.\n   (`token-storage`, `token-in-state`, `token-in-log`, `token-in-url`; these four run in every app)\n3. **Every secret key is declared once in `SECURE_KEYS`; wipes loop over `ALL_SECURE_KEYS`.** Why: a\n   key typed by hand somewhere survives sign-out and the fresh-install wipe. (`secure-keys`)\n4. **A fresh install wipes what the Keychain kept.** An install marker in the app sandbox\n   (kv-store) is checked at restore: missing means wipe every key, then mark; unreadable means never\n   wipe. Why: the iOS Keychain outlives an uninstall, so a reinstall would sign the previous person\n   back in. (`fresh-install-wipe`)\n5. **Restore never guesses, and never waits forever.** A read that fails in the background publishes\n   `unavailable` and is retried in the foreground; one that fails in the foreground (read twice) signs\n   out with reason `storage-unavailable` and keeps the values; an unreadable session signs out but is\n   kept. The restore is app-startup-and-bootstrap's blocking startup-gate task `restoreSessionTask`\n   under its `deadlineMs` (that skill owns the one splash hold and release; auth calls no\n   `SplashScreen` function); a miss opens only a \"checking your session\" route, never a `null` frame.\n   Why: a locked phone or a parser bug must not destroy a valid session, and a broken Keystore must not\n   keep the app checking so long that the person can never reach sign-in. (session-manager,\n   session-context and session-guards tests)\n6. **Persist, then publish; a sign-out always wins.** Sign-in writes the refresh token first, then the\n   rest, and only then publishes `signed-in`; every write and wipe runs through one queue, and a\n   generation number drops work started before a sign-out. Why: the reverse order shows the app and\n   loses the session at the next launch; a late refresh would sign a signed-out person back in.\n   (session-manager tests)\n7. **One token issuer, one refresh at a time, owned by the session manager.** Every sign-in method\n   ends in tokens from the issuer whose `TokenRefresher` the session holds: with an app server (Apple\n   needs one) each method is exchanged there and the refresher is `createServerTokenRefresher`; the\n   OAuth refresher only when OAuth is the sole method and there is no server. Callers share the\n   in-flight refresh; only the session manager calls the refresher. Why: a refresh token sent to the\n   wrong issuer answers `invalid_grant` one token lifetime later, and two refreshes with a rotating\n   refresh token look like a replay that revokes every session. (`single-flight-refresh`, tests)\n8. **Only the server ends a session.** `invalid_grant` or another OAuth error ends it; no connection,\n   a timeout or 5xx keep it, and an unexpired token still goes out offline; a 401 renews once\n   (`sendWithSession`), a second 401 signs out. Why: a train tunnel must never sign anyone out.\n   (token-set and send-with-session tests)\n9. **Protected groups are guards, not navigation.** Each signed-in group has its own `_layout` and\n   sits inside `\u003CStack.Protected guard={isSignedIn}>`; signed-out routes sit inside\n   `guard={isSignedOut}`; flows switch by changing the session, never with `router.replace`; no\n   `redirectTo` before SDK 58. Why: without the group layout the guard protects none of its screens\n   (verified), and a deep link opens them signed out. (`protected-groups`, session-guards test)\n10. **Sign-out clears everything, in two phases.** First, on `signOut('user')`, the\n    `serverSignOutSteps` (push unregistration, server logout) run with the still-valid token under one\n    5 s deadline; then wipe every key, publish `signed-out` (protected screens leave), run every\n    `signOutSteps` entry (query cache, account stores, rows, reminders) even when one fails, and revoke\n    the refresh token best effort. Both lists are named in `contracts\u002Fauth.json`. Why: a cache nobody\n    cleared shows the next person this person's data, and a push registration nobody removed sends\n    them this person's notifications; after the wipe no server call can be authorized. (`sign-out-steps`)\n11. **OAuth is the authorization code flow with PKCE (S256) in an ephemeral system browser.** No\n    implicit flow, no WebView, no client secret, the `code_verifier` passed to `exchangeCodeAsync`\n    (expo-auth-session does not add it). Why: anything else leaks tokens or codes, and a shared browser\n    cookie signs the last person straight back in. (`oauth-pkce`, `oauth-ephemeral`)\n12. **Sign in with Apple is iOS-only, configured, and nonced.** `usesAppleSignIn` (or the plugin), a\n    fresh nonce hashed with SHA-256, `ERR_REQUEST_CANCELED` silent, the credential verified by the\n    app's server, the name and email saved on the first sign-in, a revoked credential signing out,\n    Apple's own button. Offer it (or an equal private login) whenever a third-party login sets up the\n    account (App Store guideline 4.8). (`apple-sign-in`)\n13. **Android backups leave the secure store out.** `['expo-secure-store', { faceIDPermission: false }]`\n    in `app.config.ts`, or the app's own rules named in the contract. Why: prebuild does not apply this\n    plugin by itself, and a restored copy cannot be decrypted on the new phone. (`secure-store-plugin`)\n14. **An app that creates accounts deletes them inside the app.** A route in the signed-in group, the\n    server deletes (and revokes Apple tokens), then `signOut('account-deleted')`. Why: App Store\n    guideline 5.1.1(v) and Google Play (which also wants a web link) require it. (`account-deletion`)\n\n## Workflow\n\n1. Read `references\u002Fsession-lifecycle.md` (the states, races and sign-out order) and\n   `references\u002Fsecure-storage.md` (platform behaviour). For the provider read\n   `references\u002Foauth-and-apple.md`; for routes `references\u002Fprotected-routes.md`.\n2. Install the packages and edit `app.config.ts` (`references\u002Fadopting-in-an-app.md` sections 1-2):\n   the expo-secure-store plugin with `faceIDPermission: false`, Apple's plugin, a scheme per variant.\n3. Copy every file under `templates\u002F` to the path its first line names, tests included; the contract\n   and schema land in `contracts\u002F`.\n4. Add the four ports to the composition root and its test, and record the SDKs in\n   `contracts\u002Farchitecture.json` (`examples\u002Fcreate-device-services.ts`, `examples\u002Fservices-context.tsx`,\n   adopting-in-an-app.md sections 4-5).\n5. Read the provider settings in `src\u002Fconfig\u002Foauth-config.ts` (`examples\u002Foauth-config.ts`); register\n   `\u003Cscheme>:\u002F\u002Foauth-redirect` for each variant with the provider (Google refuses custom schemes on\n   Android: `references\u002Foauth-and-apple.md` section 3). Stop and ask the developer for the\n   issuer, client id and Apple team setup: they are outward-facing accounts.\n6. Pick the one token issuer (rule 7): with a server, every method exchanges there and the session gets\n   `examples\u002Fserver-refresher.ts`. Create the session once (`examples\u002Fcreate-app-session.ts`) in\n   `AppRoot`, render `SessionProvider` in\n   `RootStack` (`examples\u002Froot-stack.tsx`), and guard the Stack (`examples\u002Fapp-stack.tsx`); give each\n   protected group its own `_layout.tsx`.\n7. Build sign-in as a feature: `examples\u002Fuse-sign-in-model.ts`, `examples\u002Fsign-in-screen.tsx`,\n   `examples\u002Fsign-in-route.tsx`, the Android redirect route (`examples\u002Foauth-redirect-route.tsx`,\n   `examples\u002Fuse-oauth-redirect.ts`), and on iOS `examples\u002Fuse-apple-sign-in.ts` over\n   `examples\u002Fauth-mutations.ts`.\n8. Send requests to the app's server through `examples\u002Fauthorized-api-client.ts` (`sessionHeaders` and\n   `sendWithSession`), pass every per-account cache as a sign-out step and every server call that needs\n   the session (push unregistration) as a server sign-out step; list both in `contracts\u002Fauth.json`.\n9. When the app creates accounts, build deletion (`examples\u002Fuse-delete-account-model.ts`) and name the\n   route in the contract. Test it against a staging server only, never production.\n10. Write a test for every example you adopted (`createSessionTestKit` keeps them short), and a router\n    test for the app's own AppStack (from `session-guards.test.tsx`: a signed-out deep link lands on\n    sign-in; the checker cannot see a guard bound to the wrong boolean), run\n    `npx jest --ci` (the templates' tests cover rules 5-8, 10 and 9's behaviour), then the checker:\n    `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-auth.mjs .`; fix and rerun until `RESULT: PASS`. Look up a\n    rule in `references\u002Fchecker-rules.md`.\n11. Hand the device checklist (`references\u002Foauth-and-apple.md` section 9) to a human for one named iOS\n    device and one named Android device before release.\n\n## Definition of done\n\n- [ ] Tokens only behind `SecureStoragePort`; one adapter, one frozen options object.\n- [ ] No credential in plain storage, stores, logs, URLs or `EXPO_PUBLIC_*`.\n- [ ] Fresh-install wipe; `unavailable` in the background, `storage-unavailable` after two failed\n  foreground reads (values kept); the restore is the startup gate's blocking task, and a miss shows the\n  checking-session route (no `SplashScreen` call in auth code, no `null` frame).\n- [ ] Sign-in persists before it publishes; a sign-out during sign-in or refresh wins (tests pass).\n- [ ] One token issuer per session (every sign-in method ends at the refresher's issuer); one shared\n  refresh in the session manager; a 401 renews once, then signs out.\n- [ ] Every protected group has its own `_layout` and a guard; no `router.replace` after sign-in\u002Fout.\n- [ ] Every per-account cache is a sign-out step, every server call that needs the session a server\n  sign-out step, both listed in `contracts\u002Fauth.json`.\n- [ ] OAuth: code + PKCE S256, ephemeral, verifier on exchange, no client secret; redirect per variant.\n- [ ] Sign in with Apple configured with a nonce and a silent cancel (when offered).\n- [ ] expo-secure-store plugin listed; account deletion route when accounts are created.\n- [ ] `npx jest --ci` passes, including `session-guards.test.tsx` and a test per adopted example.\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-auth.mjs .` prints `RESULT: PASS` (no SKIP lines exist;\n  `NOT APPLICABLE` only while no app file imports an auth package, no contract exists and no\n  credential leaks; an app with secrets but no sign-in writes `{ \"signIn\": false }` and passes the\n  storage rules, `references\u002Fsecure-storage.md` section 7).\n\n## Anti-patterns\n\n- **Publishing the session before the write** (Expo's sample `useStorageState` sets state, then writes\n  without awaiting). The UI shows the app; a failed write signs the person out next launch.\n- **`router.replace('\u002F')` after `signIn()`.** The guard already navigates; a second navigation races it.\n- **A guard around a group without its own `_layout`.** It protects nothing and Expo Router says\n  nothing.\n- **Refreshing in an Axios-style interceptor per request.** Ten 401s, ten refreshes, a revoked token\n  family. Share one refresh in the session manager; a server refresh endpoint is a `TokenRefresher`.\n- **Wiping, then calling the server at sign-out.** The push unregister goes out signed out and fails\n  silently; make it a server sign-out step.\n- **Waiting for a Keystore that stays broken.** `unavailable` forever is a checking screen forever.\n- **Hiding the splash from `AppStack` when `isRestoring` ends, or returning `null` while restoring.**\n  The hold and release are app-startup-and-bootstrap's; once its gate opened, `null` is a blank frame.\n  Make the restore a gate task and render the guarded checking-session route.\n- **Signing out on any refresh error.** Offline is not expired; only `invalid_grant` ends a session.\n- **Wiping the session on a read error.** A locked keychain is not an empty one.\n- **Clearing only the tokens at sign-out.** The query cache and account stores still show the last\n  person's data; make each one a step.\n- **Tokens in a Zustand `persist` store or kv-store \"for speed\".** Plain files, in backups.\n- **Sign-in exchanges through `useMutation`.** The MutationCache keeps the credential and the tokens.\n- **A client secret in `app.config.ts` or `EXPO_PUBLIC_*`.** Public the moment the app ships.\n- **Trusting the id token on the device.** Read its claims for display; the server verifies.\n- **Calling Apple's `signOutAsync` to sign out.** It shows Apple's sheet; clear the app's session.\n- **A hand-drawn Apple button.** It must follow Apple's branding rules; use Apple's own through the port.\n\n## Files in this skill\n\n| File | What it is | Read\u002Frun when |\n|---|---|---|\n| `references\u002Fsession-lifecycle.md` | States, restore, persist-then-publish, single-flight refresh, 401s, sign-out order, races, startup order, test recipes | Before building or changing the session |\n| `references\u002Fsecure-storage.md` | Keychain and Keystore behaviour, options, keys, uninstall, backups, biometrics, verified facts | Storing any secret; a secret is lost or survives |\n| `references\u002Foauth-and-apple.md` | Code + PKCE with expo-auth-session 57, redirects, errors, id tokens, Sign in with Apple, guidelines 4.8 and 5.1.1(v), Google Play deletion, device checklist | Adding a provider or Apple; before release |\n| `references\u002Fprotected-routes.md` | Stack.Protected behaviour (verified), the group-layout pitfall, the checking-session route while restoring, SDK 57 limits | Guarding routes |\n| `references\u002Fadopting-in-an-app.md` | Every edit to adopt the templates, as verified on the reference app | Workflow steps 2-9 |\n| `references\u002Fchecker-rules.md` | Each check-auth rule, the contract keys, config keys | Reading a check-auth result |\n| `templates\u002Fsrc\u002Fcore\u002Fsession\u002F` | `token-set.ts` (tokens, expiry, which failures end a session, meta schema), `id-token-claims.ts` (unverified display claims), tests | Step 3 |\n| `templates\u002Fsrc\u002Fservices\u002Fsecure-storage\u002F` | `SecureStoragePort`, the expo-secure-store adapter, `SECURE_KEYS`, the fake, tests | Step 3 |\n| `templates\u002Fsrc\u002Fservices\u002Finstall-marker\u002F` | `InstallMarkerPort`, the kv-store adapter, the fake, tests | Step 3 |\n| `templates\u002Fsrc\u002Fservices\u002Foauth\u002F` | `OauthPort` and `OauthConfig`, the expo-auth-session adapter (PKCE, ephemeral, timeouts), the fake, tests | Step 3 |\n| `templates\u002Fsrc\u002Fservices\u002Fapple-sign-in\u002F` | `AppleSignInPort` (with Apple's button), the expo-apple-authentication adapter (nonce), the fake, tests | Step 3 |\n| `templates\u002Fsrc\u002Fservices\u002Fsession\u002F` | The session manager and its machine (state, queue, generation), types, vault, single-flight, the server `TokenRefresher` (`createServerTokenRefresher`), server and local sign-out steps and factories, `sendWithSession`\u002F`sessionHeaders`, `SessionProvider` and hooks, guards with the router test | Step 3 |\n| `templates\u002Ftest\u002Fsession\u002F` | `createSessionTestKit`: a real session over fakes, for screen and route tests | Testing code that uses a session |\n| `templates\u002Fcontracts\u002F` | `auth.json` (the app's sign-in facts) and its schema | Step 3, then fill in |\n| `examples\u002F` | Verified adoption shapes: composition root, `Services`, config, session creation with the server refresher (`server-refresher.ts`), root stack, guarded Stack, sign-in feature (id token exchanged at the server), redirect route, Apple flow, auth exchanges, authorized ApiClient, account deletion | Steps 4-9 |\n| `scripts\u002Fcheck-auth.mjs` | The checker (17 rules; storage rules only with `\"signIn\": false`) | Step 10 and the definition of done |\n| `scripts\u002Flib\u002Fauth-rules.mjs` | The checker's rules | Changing the checker |\n| `scripts\u002Flib\u002Fauth-source.mjs` | Source loading and text helpers for the rules | Changing the checker |\n| `scripts\u002Fcheck-lib.mjs` | Shared checker library (synced; never edit here) | Never by hand |\n| `scripts\u002Flib\u002Fsource-scan.mjs` | Shared source scanner (synced; never edit here) | Never by hand |\n| `scripts\u002Fselftest.mjs` | Proves the checker on planted bugs | After changing the checker |\n| `tests\u002Fbases\u002Fapp\u002F` | The fixture base app, with planted installed-skill findings that must stay silent | The self-test reads it |\n| `tests\u002Ffixtures\u002Fcheck-auth\u002F` | One overlay case per rule (good, bad-*, pass-*, error-*) on the base, templates and examples | The self-test reads them |\n| `assets\u002Fshared.json` | Which shared libraries are synced into this skill | Maintenance |\n\n## Related skills\n\n- `networking-and-server-state` - the ApiClient, mutations and the query cache sign-out clears.\n- `state-management-zustand` - an account store holding only non-secret facts.\n- `architecture-and-boundaries` - the composition root and the SDK lists.\n- `navigation-and-routing` - the navigator tree the guards sit in.\n- `app-startup-and-bootstrap` - the startup order and the splash screen.\n- `app-variants-and-environment` - schemes and `EXPO_PUBLIC_*` per variant.\n- `expo-prebuild-and-config-plugins` - the native snapshot after adding the plugins.\n- `push-notifications` - the push registration a server sign-out step removes.\n- `error-handling-typed-results` - Result failures and recording.\n- `async-safety` - deadlines and effects that own their work.\n- `privacy-and-store-declarations` - data-safety answers and export compliance.\n- `unit-and-component-tests` - the router test helper and test conventions.\n","# Auth and secure storage\n\nMakes sign-in safe and complete on iOS and Android: tokens live only in the Keychain or Keystore behind\none port, one session manager restores, refreshes and ends the session without races, route groups open\nand close with it, OAuth runs the code flow with PKCE, Sign in with Apple uses a nonce, and sign-out\nleaves nothing of the last person behind. A zero-dependency checker proves the structure; Jest tests\nprove the behaviour.\n\n## Rules that must hold\n\n1. **Tokens live only in expo-secure-store, behind `SecureStoragePort`.** One adapter imports the SDK\n   and passes one frozen options object (`keychainAccessible: AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY`) to\n   every async call; never `getItem`\u002F`setItem`, never `ALWAYS`, no `requireAuthentication` on session\n   tokens. Why: a read with other options finds nothing; `WHEN_UNLOCKED` breaks background refresh;\n   biometrics prompt on every Android read and a new fingerprint signs people out.\n   (`vendor-import`, `secure-store-call`)\n2. **A credential appears nowhere else.** Not in SQLite, kv-store, AsyncStorage, MMKV or files, not in a\n   Zustand store (not even a bare `token` field), not in a log, crash report or analytics event, not in\n   a TanStack mutation (its cache keeps variables and data), not in a URL, never in `EXPO_PUBLIC_*`.\n   Why: none of those is encrypted with a hardware key, and logs, backups and URLs travel.\n   (`token-storage`, `token-in-state`, `token-in-log`, `token-in-url`; these four run in every app)\n3. **Every secret key is declared once in `SECURE_KEYS`; wipes loop over `ALL_SECURE_KEYS`.** Why: a\n   key typed by hand somewhere survives sign-out and the fresh-install wipe. (`secure-keys`)\n4. **A fresh install wipes what the Keychain kept.** An install marker in the app sandbox\n   (kv-store) is checked at restore: missing means wipe every key, then mark; unreadable means never\n   wipe. Why: the iOS Keychain outlives an uninstall, so a reinstall would sign the previous person\n   back in. (`fresh-install-wipe`)\n5. **Restore never guesses, and never waits forever.** A read that fails in the background publishes\n   `unavailable` and is retried in the foreground; one that fails in the foreground (read twice) signs\n   out with reason `storage-unavailable` and keeps the values; an unreadable session signs out but is\n   kept. The restore is app-startup-and-bootstrap's blocking startup-gate task `restoreSessionTask`\n   under its `deadlineMs` (that skill owns the one splash hold and release; auth calls no\n   `SplashScreen` function); a miss opens only a \"checking your session\" route, never a `null` frame.\n   Why: a locked phone or a parser bug must not destroy a valid session, and a broken Keystore must not\n   keep the app checking so long that the person can never reach sign-in. (session-manager,\n   session-context and session-guards tests)\n6. **Persist, then publish; a sign-out always wins.** Sign-in writes the refresh token first, then the\n   rest, and only then publishes `signed-in`; every write and wipe runs through one queue, and a\n   generation number drops work started before a sign-out. Why: the reverse order shows the app and\n   loses the session at the next launch; a late refresh would sign a signed-out person back in.\n   (session-manager tests)\n7. **One token issuer, one refresh at a time, owned by the session manager.** Every sign-in method\n   ends in tokens from the issuer whose `TokenRefresher` the session holds: with an app server (Apple\n   needs one) each method is exchanged there and the refresher is `createServerTokenRefresher`; the\n   OAuth refresher only when OAuth is the sole method and there is no server. Callers share the\n   in-flight refresh; only the session manager calls the refresher. Why: a refresh token sent to the\n   wrong issuer answers `invalid_grant` one token lifetime later, and two refreshes with a rotating\n   refresh token look like a replay that revokes every session. (`single-flight-refresh`, tests)\n8. **Only the server ends a session.** `invalid_grant` or another OAuth error ends it; no connection,\n   a timeout or 5xx keep it, and an unexpired token still goes out offline; a 401 renews once\n   (`sendWithSession`), a second 401 signs out. Why: a train tunnel must never sign anyone out.\n   (token-set and send-with-session tests)\n9. **Protected groups are guards, not navigation.** Each signed-in group has its own `_layout` and\n   sits inside `\u003CStack.Protected guard={isSignedIn}>`; signed-out routes sit inside\n   `guard={isSignedOut}`; flows switch by changing the session, never with `router.replace`; no\n   `redirectTo` before SDK 58. Why: without the group layout the guard protects none of its screens\n   (verified), and a deep link opens them signed out. (`protected-groups`, session-guards test)\n10. **Sign-out clears everything, in two phases.** First, on `signOut('user')`, the\n    `serverSignOutSteps` (push unregistration, server logout) run with the still-valid token under one\n    5 s deadline; then wipe every key, publish `signed-out` (protected screens leave), run every\n    `signOutSteps` entry (query cache, account stores, rows, reminders) even when one fails, and revoke\n    the refresh token best effort. Both lists are named in `contracts\u002Fauth.json`. Why: a cache nobody\n    cleared shows the next person this person's data, and a push registration nobody removed sends\n    them this person's notifications; after the wipe no server call can be authorized. (`sign-out-steps`)\n11. **OAuth is the authorization code flow with PKCE (S256) in an ephemeral system browser.** No\n    implicit flow, no WebView, no client secret, the `code_verifier` passed to `exchangeCodeAsync`\n    (expo-auth-session does not add it). Why: anything else leaks tokens or codes, and a shared browser\n    cookie signs the last person straight back in. (`oauth-pkce`, `oauth-ephemeral`)\n12. **Sign in with Apple is iOS-only, configured, and nonced.** `usesAppleSignIn` (or the plugin), a\n    fresh nonce hashed with SHA-256, `ERR_REQUEST_CANCELED` silent, the credential verified by the\n    app's server, the name and email saved on the first sign-in, a revoked credential signing out,\n    Apple's own button. Offer it (or an equal private login) whenever a third-party login sets up the\n    account (App Store guideline 4.8). (`apple-sign-in`)\n13. **Android backups leave the secure store out.** `['expo-secure-store', { faceIDPermission: false }]`\n    in `app.config.ts`, or the app's own rules named in the contract. Why: prebuild does not apply this\n    plugin by itself, and a restored copy cannot be decrypted on the new phone. (`secure-store-plugin`)\n14. **An app that creates accounts deletes them inside the app.** A route in the signed-in group, the\n    server deletes (and revokes Apple tokens), then `signOut('account-deleted')`. Why: App Store\n    guideline 5.1.1(v) and Google Play (which also wants a web link) require it. (`account-deletion`)\n\n## Workflow\n\n1. Read `references\u002Fsession-lifecycle.md` (the states, races and sign-out order) and\n   `references\u002Fsecure-storage.md` (platform behaviour). For the provider read\n   `references\u002Foauth-and-apple.md`; for routes `references\u002Fprotected-routes.md`.\n2. Install the packages and edit `app.config.ts` (`references\u002Fadopting-in-an-app.md` sections 1-2):\n   the expo-secure-store plugin with `faceIDPermission: false`, Apple's plugin, a scheme per variant.\n3. Copy every file under `templates\u002F` to the path its first line names, tests included; the contract\n   and schema land in `contracts\u002F`.\n4. Add the four ports to the composition root and its test, and record the SDKs in\n   `contracts\u002Farchitecture.json` (`examples\u002Fcreate-device-services.ts`, `examples\u002Fservices-context.tsx`,\n   adopting-in-an-app.md sections 4-5).\n5. Read the provider settings in `src\u002Fconfig\u002Foauth-config.ts` (`examples\u002Foauth-config.ts`); register\n   `\u003Cscheme>:\u002F\u002Foauth-redirect` for each variant with the provider (Google refuses custom schemes on\n   Android: `references\u002Foauth-and-apple.md` section 3). Stop and ask the developer for the\n   issuer, client id and Apple team setup: they are outward-facing accounts.\n6. Pick the one token issuer (rule 7): with a server, every method exchanges there and the session gets\n   `examples\u002Fserver-refresher.ts`. Create the session once (`examples\u002Fcreate-app-session.ts`) in\n   `AppRoot`, render `SessionProvider` in\n   `RootStack` (`examples\u002Froot-stack.tsx`), and guard the Stack (`examples\u002Fapp-stack.tsx`); give each\n   protected group its own `_layout.tsx`.\n7. Build sign-in as a feature: `examples\u002Fuse-sign-in-model.ts`, `examples\u002Fsign-in-screen.tsx`,\n   `examples\u002Fsign-in-route.tsx`, the Android redirect route (`examples\u002Foauth-redirect-route.tsx`,\n   `examples\u002Fuse-oauth-redirect.ts`), and on iOS `examples\u002Fuse-apple-sign-in.ts` over\n   `examples\u002Fauth-mutations.ts`.\n8. Send requests to the app's server through `examples\u002Fauthorized-api-client.ts` (`sessionHeaders` and\n   `sendWithSession`), pass every per-account cache as a sign-out step and every server call that needs\n   the session (push unregistration) as a server sign-out step; list both in `contracts\u002Fauth.json`.\n9. When the app creates accounts, build deletion (`examples\u002Fuse-delete-account-model.ts`) and name the\n   route in the contract. Test it against a staging server only, never production.\n10. Write a test for every example you adopted (`createSessionTestKit` keeps them short), and a router\n    test for the app's own AppStack (from `session-guards.test.tsx`: a signed-out deep link lands on\n    sign-in; the checker cannot see a guard bound to the wrong boolean), run\n    `npx jest --ci` (the templates' tests cover rules 5-8, 10 and 9's behaviour), then the checker:\n    `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-auth.mjs .`; fix and rerun until `RESULT: PASS`. Look up a\n    rule in `references\u002Fchecker-rules.md`.\n11. Hand the device checklist (`references\u002Foauth-and-apple.md` section 9) to a human for one named iOS\n    device and one named Android device before release.\n\n## Definition of done\n\n- [ ] Tokens only behind `SecureStoragePort`; one adapter, one frozen options object.\n- [ ] No credential in plain storage, stores, logs, URLs or `EXPO_PUBLIC_*`.\n- [ ] Fresh-install wipe; `unavailable` in the background, `storage-unavailable` after two failed\n  foreground reads (values kept); the restore is the startup gate's blocking task, and a miss shows the\n  checking-session route (no `SplashScreen` call in auth code, no `null` frame).\n- [ ] Sign-in persists before it publishes; a sign-out during sign-in or refresh wins (tests pass).\n- [ ] One token issuer per session (every sign-in method ends at the refresher's issuer); one shared\n  refresh in the session manager; a 401 renews once, then signs out.\n- [ ] Every protected group has its own `_layout` and a guard; no `router.replace` after sign-in\u002Fout.\n- [ ] Every per-account cache is a sign-out step, every server call that needs the session a server\n  sign-out step, both listed in `contracts\u002Fauth.json`.\n- [ ] OAuth: code + PKCE S256, ephemeral, verifier on exchange, no client secret; redirect per variant.\n- [ ] Sign in with Apple configured with a nonce and a silent cancel (when offered).\n- [ ] expo-secure-store plugin listed; account deletion route when accounts are created.\n- [ ] `npx jest --ci` passes, including `session-guards.test.tsx` and a test per adopted example.\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-auth.mjs .` prints `RESULT: PASS` (no SKIP lines exist;\n  `NOT APPLICABLE` only while no app file imports an auth package, no contract exists and no\n  credential leaks; an app with secrets but no sign-in writes `{ \"signIn\": false }` and passes the\n  storage rules, `references\u002Fsecure-storage.md` section 7).\n\n## Anti-patterns\n\n- **Publishing the session before the write** (Expo's sample `useStorageState` sets state, then writes\n  without awaiting). The UI shows the app; a failed write signs the person out next launch.\n- **`router.replace('\u002F')` after `signIn()`.** The guard already navigates; a second navigation races it.\n- **A guard around a group without its own `_layout`.** It protects nothing and Expo Router says\n  nothing.\n- **Refreshing in an Axios-style interceptor per request.** Ten 401s, ten refreshes, a revoked token\n  family. Share one refresh in the session manager; a server refresh endpoint is a `TokenRefresher`.\n- **Wiping, then calling the server at sign-out.** The push unregister goes out signed out and fails\n  silently; make it a server sign-out step.\n- **Waiting for a Keystore that stays broken.** `unavailable` forever is a checking screen forever.\n- **Hiding the splash from `AppStack` when `isRestoring` ends, or returning `null` while restoring.**\n  The hold and release are app-startup-and-bootstrap's; once its gate opened, `null` is a blank frame.\n  Make the restore a gate task and render the guarded checking-session route.\n- **Signing out on any refresh error.** Offline is not expired; only `invalid_grant` ends a session.\n- **Wiping the session on a read error.** A locked keychain is not an empty one.\n- **Clearing only the tokens at sign-out.** The query cache and account stores still show the last\n  person's data; make each one a step.\n- **Tokens in a Zustand `persist` store or kv-store \"for speed\".** Plain files, in backups.\n- **Sign-in exchanges through `useMutation`.** The MutationCache keeps the credential and the tokens.\n- **A client secret in `app.config.ts` or `EXPO_PUBLIC_*`.** Public the moment the app ships.\n- **Trusting the id token on the device.** Read its claims for display; the server verifies.\n- **Calling Apple's `signOutAsync` to sign out.** It shows Apple's sheet; clear the app's session.\n- **A hand-drawn Apple button.** It must follow Apple's branding rules; use Apple's own through the port.\n\n## Files in this skill\n\n| File | What it is | Read\u002Frun when |\n|---|---|---|\n| `references\u002Fsession-lifecycle.md` | States, restore, persist-then-publish, single-flight refresh, 401s, sign-out order, races, startup order, test recipes | Before building or changing the session |\n| `references\u002Fsecure-storage.md` | Keychain and Keystore behaviour, options, keys, uninstall, backups, biometrics, verified facts | Storing any secret; a secret is lost or survives |\n| `references\u002Foauth-and-apple.md` | Code + PKCE with expo-auth-session 57, redirects, errors, id tokens, Sign in with Apple, guidelines 4.8 and 5.1.1(v), Google Play deletion, device checklist | Adding a provider or Apple; before release |\n| `references\u002Fprotected-routes.md` | Stack.Protected behaviour (verified), the group-layout pitfall, the checking-session route while restoring, SDK 57 limits | Guarding routes |\n| `references\u002Fadopting-in-an-app.md` | Every edit to adopt the templates, as verified on the reference app | Workflow steps 2-9 |\n| `references\u002Fchecker-rules.md` | Each check-auth rule, the contract keys, config keys | Reading a check-auth result |\n| `templates\u002Fsrc\u002Fcore\u002Fsession\u002F` | `token-set.ts` (tokens, expiry, which failures end a session, meta schema), `id-token-claims.ts` (unverified display claims), tests | Step 3 |\n| `templates\u002Fsrc\u002Fservices\u002Fsecure-storage\u002F` | `SecureStoragePort`, the expo-secure-store adapter, `SECURE_KEYS`, the fake, tests | Step 3 |\n| `templates\u002Fsrc\u002Fservices\u002Finstall-marker\u002F` | `InstallMarkerPort`, the kv-store adapter, the fake, tests | Step 3 |\n| `templates\u002Fsrc\u002Fservices\u002Foauth\u002F` | `OauthPort` and `OauthConfig`, the expo-auth-session adapter (PKCE, ephemeral, timeouts), the fake, tests | Step 3 |\n| `templates\u002Fsrc\u002Fservices\u002Fapple-sign-in\u002F` | `AppleSignInPort` (with Apple's button), the expo-apple-authentication adapter (nonce), the fake, tests | Step 3 |\n| `templates\u002Fsrc\u002Fservices\u002Fsession\u002F` | The session manager and its machine (state, queue, generation), types, vault, single-flight, the server `TokenRefresher` (`createServerTokenRefresher`), server and local sign-out steps and factories, `sendWithSession`\u002F`sessionHeaders`, `SessionProvider` and hooks, guards with the router test | Step 3 |\n| `templates\u002Ftest\u002Fsession\u002F` | `createSessionTestKit`: a real session over fakes, for screen and route tests | Testing code that uses a session |\n| `templates\u002Fcontracts\u002F` | `auth.json` (the app's sign-in facts) and its schema | Step 3, then fill in |\n| `examples\u002F` | Verified adoption shapes: composition root, `Services`, config, session creation with the server refresher (`server-refresher.ts`), root stack, guarded Stack, sign-in feature (id token exchanged at the server), redirect route, Apple flow, auth exchanges, authorized ApiClient, account deletion | Steps 4-9 |\n| `scripts\u002Fcheck-auth.mjs` | The checker (17 rules; storage rules only with `\"signIn\": false`) | Step 10 and the definition of done |\n| `scripts\u002Flib\u002Fauth-rules.mjs` | The checker's rules | Changing the checker |\n| `scripts\u002Flib\u002Fauth-source.mjs` | Source loading and text helpers for the rules | Changing the checker |\n| `scripts\u002Fcheck-lib.mjs` | Shared checker library (synced; never edit here) | Never by hand |\n| `scripts\u002Flib\u002Fsource-scan.mjs` | Shared source scanner (synced; never edit here) | Never by hand |\n| `scripts\u002Fselftest.mjs` | Proves the checker on planted bugs | After changing the checker |\n| `tests\u002Fbases\u002Fapp\u002F` | The fixture base app, with planted installed-skill findings that must stay silent | The self-test reads it |\n| `tests\u002Ffixtures\u002Fcheck-auth\u002F` | One overlay case per rule (good, bad-*, pass-*, error-*) on the base, templates and examples | The self-test reads them |\n| `assets\u002Fshared.json` | Which shared libraries are synced into this skill | Maintenance |\n\n## Related skills\n\n- `networking-and-server-state` - the ApiClient, mutations and the query cache sign-out clears.\n- `state-management-zustand` - an account store holding only non-secret facts.\n- `architecture-and-boundaries` - the composition root and the SDK lists.\n- `navigation-and-routing` - the navigator tree the guards sit in.\n- `app-startup-and-bootstrap` - the startup order and the splash screen.\n- `app-variants-and-environment` - schemes and `EXPO_PUBLIC_*` per variant.\n- `expo-prebuild-and-config-plugins` - the native snapshot after adding the plugins.\n- `push-notifications` - the push registration a server sign-out step removes.\n- `error-handling-typed-results` - Result failures and recording.\n- `async-safety` - deadlines and effects that own their work.\n- `privacy-and-store-declarations` - data-safety answers and export compliance.\n- `unit-and-component-tests` - the router test helper and test conventions.\n",{"name":5,"description":7},"main","41a0e66d4d09de5b46e6537f59a97c7192473486","skills\u002Fauth-and-secure-storage",2,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills","https:\u002F\u002Fzakaria.dev\u002FReactNative-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fzakariaf","https:\u002F\u002Fzakaria.dev","Seniore Software Engineer","2026-10-22 07:05:00",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add zakariaf\u002FReactNative-Skills --skill auth-and-secure-storage",{"tool":40,"command":41},"bunx","bunx skills add zakariaf\u002FReactNative-Skills --skill auth-and-secure-storage",{"tool":43,"command":44},"pnpm","pnpm dlx skills add zakariaf\u002FReactNative-Skills --skill auth-and-secure-storage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002FSKILL.md",true,[48,54,60,66,70,74,78,82,86,90,94,98,102,106,110,114,118,122,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304,308,312,316,320,324,328,332,336,340,344,348,352,356,360,364,368,372,376,380,384,388,392,396,400,404,408,412,416,419],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"assets\u002Fshared.json","ASSET","资产文件",155,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fassets\u002Fshared.json",{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"examples\u002Fapp-stack.tsx","OTHER","其他",1956,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fexamples\u002Fapp-stack.tsx",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"examples\u002Fauth-mutations.ts","SCRIPT","脚本",3830,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fexamples\u002Fauth-mutations.ts",{"path":67,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":68,"sourceHtmlUrl":69},"examples\u002Fauthorized-api-client.ts",1873,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fexamples\u002Fauthorized-api-client.ts",{"path":71,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":72,"sourceHtmlUrl":73},"examples\u002Fcreate-app-session.ts",2245,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fexamples\u002Fcreate-app-session.ts",{"path":75,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":76,"sourceHtmlUrl":77},"examples\u002Fcreate-device-services.ts",1849,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fexamples\u002Fcreate-device-services.ts",{"path":79,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":80,"sourceHtmlUrl":81},"examples\u002Foauth-config.ts",1856,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fexamples\u002Foauth-config.ts",{"path":83,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":84,"sourceHtmlUrl":85},"examples\u002Foauth-redirect-route.tsx",537,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fexamples\u002Foauth-redirect-route.tsx",{"path":87,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":88,"sourceHtmlUrl":89},"examples\u002Froot-stack.tsx",1973,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fexamples\u002Froot-stack.tsx",{"path":91,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":92,"sourceHtmlUrl":93},"examples\u002Fserver-refresher.ts",1471,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fexamples\u002Fserver-refresher.ts",{"path":95,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":96,"sourceHtmlUrl":97},"examples\u002Fservices-context.tsx",2317,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fexamples\u002Fservices-context.tsx",{"path":99,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":100,"sourceHtmlUrl":101},"examples\u002Fsign-in-route.tsx",369,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fexamples\u002Fsign-in-route.tsx",{"path":103,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":104,"sourceHtmlUrl":105},"examples\u002Fsign-in-screen.tsx",1808,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fexamples\u002Fsign-in-screen.tsx",{"path":107,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":108,"sourceHtmlUrl":109},"examples\u002Fuse-apple-sign-in.ts",2720,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fexamples\u002Fuse-apple-sign-in.ts",{"path":111,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":112,"sourceHtmlUrl":113},"examples\u002Fuse-delete-account-model.ts",1905,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fexamples\u002Fuse-delete-account-model.ts",{"path":115,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":116,"sourceHtmlUrl":117},"examples\u002Fuse-oauth-redirect.ts",794,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fexamples\u002Fuse-oauth-redirect.ts",{"path":119,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":120,"sourceHtmlUrl":121},"examples\u002Fuse-sign-in-model.ts",3074,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fexamples\u002Fuse-sign-in-model.ts",{"path":123,"resourceType":124,"resourceTypeDesc":125,"sizeBytes":126,"sourceHtmlUrl":127},"references\u002Fadopting-in-an-app.md","REFERENCE","参考文档",14705,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Freferences\u002Fadopting-in-an-app.md",{"path":129,"resourceType":124,"resourceTypeDesc":125,"sizeBytes":130,"sourceHtmlUrl":131},"references\u002Fchecker-rules.md",11461,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Freferences\u002Fchecker-rules.md",{"path":133,"resourceType":124,"resourceTypeDesc":125,"sizeBytes":134,"sourceHtmlUrl":135},"references\u002Foauth-and-apple.md",16206,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Freferences\u002Foauth-and-apple.md",{"path":137,"resourceType":124,"resourceTypeDesc":125,"sizeBytes":138,"sourceHtmlUrl":139},"references\u002Fprotected-routes.md",8548,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Freferences\u002Fprotected-routes.md",{"path":141,"resourceType":124,"resourceTypeDesc":125,"sizeBytes":142,"sourceHtmlUrl":143},"references\u002Fsecure-storage.md",14428,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Freferences\u002Fsecure-storage.md",{"path":145,"resourceType":124,"resourceTypeDesc":125,"sizeBytes":146,"sourceHtmlUrl":147},"references\u002Fsession-lifecycle.md",20448,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Freferences\u002Fsession-lifecycle.md",{"path":149,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":150,"sourceHtmlUrl":151},"scripts\u002Fcheck-auth.mjs",12706,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fscripts\u002Fcheck-auth.mjs",{"path":153,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":154,"sourceHtmlUrl":155},"scripts\u002Fcheck-lib.mjs",119923,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fscripts\u002Fcheck-lib.mjs",{"path":157,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":158,"sourceHtmlUrl":159},"scripts\u002Flib\u002Fauth-rules.mjs",25743,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fscripts\u002Flib\u002Fauth-rules.mjs",{"path":161,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":162,"sourceHtmlUrl":163},"scripts\u002Flib\u002Fauth-source.mjs",5933,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fscripts\u002Flib\u002Fauth-source.mjs",{"path":165,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":166,"sourceHtmlUrl":167},"scripts\u002Flib\u002Fsource-scan.mjs",35908,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fscripts\u002Flib\u002Fsource-scan.mjs",{"path":169,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":170,"sourceHtmlUrl":171},"scripts\u002Fselftest.mjs",830,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Fscripts\u002Fselftest.mjs",{"path":173,"resourceType":124,"resourceTypeDesc":125,"sizeBytes":174,"sourceHtmlUrl":175},"templates\u002Fcontracts\u002Fauth.json",515,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fcontracts\u002Fauth.json",{"path":177,"resourceType":124,"resourceTypeDesc":125,"sizeBytes":178,"sourceHtmlUrl":179},"templates\u002Fcontracts\u002Fauth.schema.json",3171,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fcontracts\u002Fauth.schema.json",{"path":181,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":182,"sourceHtmlUrl":183},"templates\u002Fsrc\u002Fcore\u002Fsession\u002Fid-token-claims.test.ts",2861,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fcore\u002Fsession\u002Fid-token-claims.test.ts",{"path":185,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":186,"sourceHtmlUrl":187},"templates\u002Fsrc\u002Fcore\u002Fsession\u002Fid-token-claims.ts",3012,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fcore\u002Fsession\u002Fid-token-claims.ts",{"path":189,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":190,"sourceHtmlUrl":191},"templates\u002Fsrc\u002Fcore\u002Fsession\u002Ftoken-set.test.ts",4078,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fcore\u002Fsession\u002Ftoken-set.test.ts",{"path":193,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":194,"sourceHtmlUrl":195},"templates\u002Fsrc\u002Fcore\u002Fsession\u002Ftoken-set.ts",4076,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fcore\u002Fsession\u002Ftoken-set.ts",{"path":197,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":198,"sourceHtmlUrl":199},"templates\u002Fsrc\u002Fservices\u002Fapple-sign-in\u002Fapple-sign-in-port.ts",3353,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fapple-sign-in\u002Fapple-sign-in-port.ts",{"path":201,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":202,"sourceHtmlUrl":203},"templates\u002Fsrc\u002Fservices\u002Fapple-sign-in\u002Fexpo-apple-sign-in-adapter.test.tsx",5246,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fapple-sign-in\u002Fexpo-apple-sign-in-adapter.test.tsx",{"path":205,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":206,"sourceHtmlUrl":207},"templates\u002Fsrc\u002Fservices\u002Fapple-sign-in\u002Fexpo-apple-sign-in-adapter.tsx",5198,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fapple-sign-in\u002Fexpo-apple-sign-in-adapter.tsx",{"path":209,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":210,"sourceHtmlUrl":211},"templates\u002Fsrc\u002Fservices\u002Fapple-sign-in\u002Ffake-apple-sign-in.test.tsx",1912,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fapple-sign-in\u002Ffake-apple-sign-in.test.tsx",{"path":213,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":214,"sourceHtmlUrl":215},"templates\u002Fsrc\u002Fservices\u002Fapple-sign-in\u002Ffake-apple-sign-in.tsx",2424,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fapple-sign-in\u002Ffake-apple-sign-in.tsx",{"path":217,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":218,"sourceHtmlUrl":219},"templates\u002Fsrc\u002Fservices\u002Finstall-marker\u002Ffake-install-marker.test.ts",1128,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Finstall-marker\u002Ffake-install-marker.test.ts",{"path":221,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":222,"sourceHtmlUrl":223},"templates\u002Fsrc\u002Fservices\u002Finstall-marker\u002Ffake-install-marker.ts",1148,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Finstall-marker\u002Ffake-install-marker.ts",{"path":225,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":226,"sourceHtmlUrl":227},"templates\u002Fsrc\u002Fservices\u002Finstall-marker\u002Finstall-marker-port.ts",1127,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Finstall-marker\u002Finstall-marker-port.ts",{"path":229,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":230,"sourceHtmlUrl":231},"templates\u002Fsrc\u002Fservices\u002Finstall-marker\u002Fkv-install-marker-adapter.test.ts",2511,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Finstall-marker\u002Fkv-install-marker-adapter.test.ts",{"path":233,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":234,"sourceHtmlUrl":235},"templates\u002Fsrc\u002Fservices\u002Finstall-marker\u002Fkv-install-marker-adapter.ts",1616,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Finstall-marker\u002Fkv-install-marker-adapter.ts",{"path":237,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":238,"sourceHtmlUrl":239},"templates\u002Fsrc\u002Fservices\u002Foauth\u002Fauth-session-oauth-adapter.test.ts",7758,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Foauth\u002Fauth-session-oauth-adapter.test.ts",{"path":241,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":242,"sourceHtmlUrl":243},"templates\u002Fsrc\u002Fservices\u002Foauth\u002Fauth-session-oauth-adapter.ts",7904,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Foauth\u002Fauth-session-oauth-adapter.ts",{"path":245,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":246,"sourceHtmlUrl":247},"templates\u002Fsrc\u002Fservices\u002Foauth\u002Ffake-oauth.test.ts",2007,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Foauth\u002Ffake-oauth.test.ts",{"path":249,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":250,"sourceHtmlUrl":251},"templates\u002Fsrc\u002Fservices\u002Foauth\u002Ffake-oauth.ts",2558,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Foauth\u002Ffake-oauth.ts",{"path":253,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":254,"sourceHtmlUrl":255},"templates\u002Fsrc\u002Fservices\u002Foauth\u002Foauth-port.ts",2033,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Foauth\u002Foauth-port.ts",{"path":257,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":258,"sourceHtmlUrl":259},"templates\u002Fsrc\u002Fservices\u002Fsecure-storage\u002Fexpo-secure-store-adapter.test.ts",3667,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsecure-storage\u002Fexpo-secure-store-adapter.test.ts",{"path":261,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":262,"sourceHtmlUrl":263},"templates\u002Fsrc\u002Fservices\u002Fsecure-storage\u002Fexpo-secure-store-adapter.ts",2607,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsecure-storage\u002Fexpo-secure-store-adapter.ts",{"path":265,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":266,"sourceHtmlUrl":267},"templates\u002Fsrc\u002Fservices\u002Fsecure-storage\u002Ffake-secure-storage.test.ts",2266,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsecure-storage\u002Ffake-secure-storage.test.ts",{"path":269,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":270,"sourceHtmlUrl":271},"templates\u002Fsrc\u002Fservices\u002Fsecure-storage\u002Ffake-secure-storage.ts",3056,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsecure-storage\u002Ffake-secure-storage.ts",{"path":273,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":274,"sourceHtmlUrl":275},"templates\u002Fsrc\u002Fservices\u002Fsecure-storage\u002Fsecure-key-names.test.ts",910,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsecure-storage\u002Fsecure-key-names.test.ts",{"path":277,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":278,"sourceHtmlUrl":279},"templates\u002Fsrc\u002Fservices\u002Fsecure-storage\u002Fsecure-key-names.ts",1166,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsecure-storage\u002Fsecure-key-names.ts",{"path":281,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":282,"sourceHtmlUrl":283},"templates\u002Fsrc\u002Fservices\u002Fsecure-storage\u002Fsecure-storage-port.ts",1485,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsecure-storage\u002Fsecure-storage-port.ts",{"path":285,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":286,"sourceHtmlUrl":287},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsend-with-session.test.ts",3396,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsend-with-session.test.ts",{"path":289,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":290,"sourceHtmlUrl":291},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsend-with-session.ts",2262,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsend-with-session.ts",{"path":293,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":294,"sourceHtmlUrl":295},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fserver-token-refresher.test.ts",5204,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fserver-token-refresher.test.ts",{"path":297,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":298,"sourceHtmlUrl":299},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fserver-token-refresher.ts",3802,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fserver-token-refresher.ts",{"path":301,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":302,"sourceHtmlUrl":303},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-context.test.tsx",3512,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-context.test.tsx",{"path":305,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":306,"sourceHtmlUrl":307},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-context.tsx",2400,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-context.tsx",{"path":309,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":310,"sourceHtmlUrl":311},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-guards.test.tsx",6496,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-guards.test.tsx",{"path":313,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":314,"sourceHtmlUrl":315},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-guards.ts",1150,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-guards.ts",{"path":317,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":318,"sourceHtmlUrl":319},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-machine.test.ts",2813,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-machine.test.ts",{"path":321,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":322,"sourceHtmlUrl":323},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-machine.ts",3695,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-machine.ts",{"path":325,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":326,"sourceHtmlUrl":327},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-manager-sign-out.test.ts",7330,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-manager-sign-out.test.ts",{"path":329,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":330,"sourceHtmlUrl":331},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-manager.test.ts",14591,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-manager.test.ts",{"path":333,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":334,"sourceHtmlUrl":335},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-manager.ts",12714,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-manager.ts",{"path":337,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":338,"sourceHtmlUrl":339},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-types.ts",6234,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-types.ts",{"path":341,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":342,"sourceHtmlUrl":343},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-vault.test.ts",3752,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-vault.test.ts",{"path":345,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":346,"sourceHtmlUrl":347},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-vault.ts",3781,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsession-vault.ts",{"path":349,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":350,"sourceHtmlUrl":351},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsign-out-step-factories.test.ts",897,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsign-out-step-factories.test.ts",{"path":353,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":354,"sourceHtmlUrl":355},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsign-out-step-factories.ts",1089,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsign-out-step-factories.ts",{"path":357,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":358,"sourceHtmlUrl":359},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsign-out-steps.test.ts",4148,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsign-out-steps.test.ts",{"path":361,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":362,"sourceHtmlUrl":363},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsign-out-steps.ts",3530,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsign-out-steps.ts",{"path":365,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":366,"sourceHtmlUrl":367},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsingle-flight.test.ts",1071,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsingle-flight.test.ts",{"path":369,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":370,"sourceHtmlUrl":371},"templates\u002Fsrc\u002Fservices\u002Fsession\u002Fsingle-flight.ts",1168,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Fsrc\u002Fservices\u002Fsession\u002Fsingle-flight.ts",{"path":373,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":374,"sourceHtmlUrl":375},"templates\u002Ftest\u002Fsession\u002Fsession-test-kit.test.ts",677,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Ftest\u002Fsession\u002Fsession-test-kit.test.ts",{"path":377,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":378,"sourceHtmlUrl":379},"templates\u002Ftest\u002Fsession\u002Fsession-test-kit.ts",2810,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftemplates\u002Ftest\u002Fsession\u002Fsession-test-kit.ts",{"path":381,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":382,"sourceHtmlUrl":383},"tests\u002Fbases\u002Fapp\u002Fapp.config.ts",580,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftests\u002Fbases\u002Fapp\u002Fapp.config.ts",{"path":385,"resourceType":124,"resourceTypeDesc":125,"sizeBytes":386,"sourceHtmlUrl":387},"tests\u002Fbases\u002Fapp\u002Fpackage.json",437,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftests\u002Fbases\u002Fapp\u002Fpackage.json",{"path":389,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":390,"sourceHtmlUrl":391},"tests\u002Fbases\u002Fapp\u002Fskills\u002Fplanted\u002Fleak.ts",279,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftests\u002Fbases\u002Fapp\u002Fskills\u002Fplanted\u002Fleak.ts",{"path":393,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":394,"sourceHtmlUrl":395},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Fapp\u002F_layout.tsx",247,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Fapp\u002F_layout.tsx",{"path":397,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":398,"sourceHtmlUrl":399},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Fapp\u002F(app)\u002F_layout.tsx",221,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Fapp\u002F(app)\u002F_layout.tsx",{"path":401,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":402,"sourceHtmlUrl":403},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Fapp\u002F(app)\u002Fdelete-account.tsx",266,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Fapp\u002F(app)\u002Fdelete-account.tsx",{"path":405,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":406,"sourceHtmlUrl":407},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Fapp\u002F(app)\u002Findex.tsx",192,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Fapp\u002F(app)\u002Findex.tsx",{"path":409,"resourceType":124,"resourceTypeDesc":125,"sizeBytes":410,"sourceHtmlUrl":411},"tests\u002Fbases\u002Fapp\u002Ftsconfig.json",147,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftests\u002Fbases\u002Fapp\u002Ftsconfig.json",{"path":413,"resourceType":124,"resourceTypeDesc":125,"sizeBytes":414,"sourceHtmlUrl":415},"tests\u002Ffixtures\u002Fcheck-auth\u002FCASES.json",30717,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftests\u002Ffixtures\u002Fcheck-auth\u002FCASES.json",{"path":417,"resourceType":124,"resourceTypeDesc":125,"sizeBytes":14,"sourceHtmlUrl":418},"tests\u002Ffixtures\u002Fcheck-auth\u002Fgood\u002FEXPECT.txt","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftests\u002Ffixtures\u002Fcheck-auth\u002Fgood\u002FEXPECT.txt",{"path":420,"resourceType":124,"resourceTypeDesc":125,"sizeBytes":421,"sourceHtmlUrl":422},"tests\u002Ffixtures\u002Fcheck-auth\u002FSUITE.json",151,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fauth-and-secure-storage\u002Ftests\u002Ffixtures\u002Fcheck-auth\u002FSUITE.json",[424,431,437,444,451,458],{"skillNo":425,"name":426,"nameZh":6,"description":427,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":428,"categories":429,"keywords":430,"publishedAt":19},"01M7F2S4KZG97D21GEJ2GKKYK1","demo","Planted skill folder (never scanned).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-support\u002Ftests\u002Fbases\u002Fapp\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":432,"name":426,"nameZh":6,"description":433,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":434,"categories":435,"keywords":436,"publishedAt":19},"01M7F2S1F4ATZ49909EDKWA9E6","Planted installed skill (its files must never be scanned).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-support\u002Ftests\u002Fbases\u002Fapp\u002F.agents\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":438,"name":439,"nameZh":6,"description":440,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":441,"categories":442,"keywords":443,"publishedAt":19},"01M7F2RXGPZJ5Q1FV2HQ1PJ6AX","web-support","Ships the web build of an Expo app: platform files, APIs missing in react-native-web, expo-sqlite headers. Use when adding web, a .web.tsx file or expo export --platform web. Not for responsive layout (adaptive-layout).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-support\u002FSKILL.md",[],[],{"skillNo":445,"name":446,"nameZh":6,"description":447,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":448,"categories":449,"keywords":450,"publishedAt":19},"01M7F2RQ43JFA4QFWQEHBET08G","value-objects-money-and-units","Stores money as ISO 4217 minor units, quantities in canonical units, instants as epoch ms. Use when adding a price, currency, tax, split, unit or timestamp, or a total is a cent off. Not for calendar days (dates-streaks-and-statistics).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalue-objects-money-and-units\u002FSKILL.md",[],[],{"skillNo":452,"name":453,"nameZh":6,"description":454,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":455,"categories":456,"keywords":457,"publishedAt":19},"01M7F2RHR7H8VVZDP16FJNJV11","unit-and-component-tests","Sets up Jest, checks unit, component and route tests (RNTL 14, renderWithProviders, SDK mocks, fakes, fast-check, Stryker). Use when writing a test or mock, or Jest fails or flakes. Not for goldens (golden-and-snapshot-tests).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002FSKILL.md",[],[],{"skillNo":459,"name":460,"nameZh":6,"description":461,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":462,"categories":463,"keywords":464,"publishedAt":19},"01M7F2RAEDWQ6H4514HFRWJAE6","ui-states-and-feedback","Builds loading, empty, failed and offline states, delayed skeletons, toasts, banners, confirms, Undo. Use when a screen loads data, shows a spinner, toast, retry or delete prompt. Not for failure values (error-handling-typed-results).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fui-states-and-feedback\u002FSKILL.md",[],[]]