AiSkillz

Early "As-Is" Access - free for the first 20 accounts. 18 of 20 places left: complete registration to claim one. No credit card needed.

← Back to skills
Backend & APIsVia MCPAny / model-agnosticLicense: My own work (all rights reserved)

Authentication & account flows

Created by CodeCraft LLC

Design, build, and review authentication and account flows independent of provider (Supabase Auth, Auth.js, Clerk, Firebase, ASP.NET Iden...

Product and technology names are trademarks of their respective owners, used only to identify what this skill covers. CodeCraft LLC is not affiliated with or endorsed by them.

by Jace (@jamick)v1.8.1 · updated 2026-12-01Report copyright infringement

Description

Design, build, and review authentication and account flows independent of provider (Supabase Auth, Auth.js, Clerk, Firebase, ASP.NET Identity, custom) — OAuth 2.x/OIDC with PKCE and state/nonce, redirect URI allow-lists, social login and Sign in with Apple requirements, magic links and OTP, password policies and reset flows, session management (cookies, refresh-token rotation, revocation), MFA and passkeys/WebAuthn, account linking, email verification, account deletion (required by app stores) and personal data export, deletion reaching processors and retention jobs, mobile auth (system browser sessions, universal/app links), and rate limiting/enumeration defenses. Use whenever the user builds or reviews login, signup, logout, password reset, OAuth callbacks, sessions, MFA, passkeys, or account deletion on web or mobile.

#backend#auth#flows

Included with all-access

$9.00 one-time, permanent access

Get all-access · $12.00/mo, billed yearly

or

Buy 2 or more together for up to 40% off · View cart

You get a licence, not ownership. Access lasts while this skill is available on AiSkillz; if it's removed within 90 days of purchase, we'll send you a copy to keep. Terms

Official and free skills are included with the all-access subscription

Changelog

Subscribers also see which files changed in each version.

v1.8.1Dec 1, 2026Latest

Added

  • README: a **Sources** line listing the official pages the skill is written from, each link checked, so the source-overlap check can run against them.
v1.8.0Nov 30, 2026

Fixed

  • "Sign in with Apple is generally required" was wrong: App Review 4.8 requires an additional login service meeting privacy criteria (name/email only, private email option, no ad tracking without consent), which Sign in with Apple satisfies but isn't mandated; exceptions listed.

Added

  • RFC 9700 specifics: PKCE MUST for public clients (recommended for confidential), no implicit or password grant, rotating or sender-constrained refresh tokens for public clients, DPoP/mTLS for access tokens. OAuth 2.1 noted as still a draft.

Changed

  • Re-checked NIST SP 800-63B-4 figures (unchanged). Deep-dive section made on-demand.
v1.7.1Nov 29, 2026

Changed

  • Added a contents list to reference files over 100 lines (token-and-session-architecture.md), so a partial read still shows every section.
v1.7.0Nov 20, 2026

Added

  • Review method: every code review starts by mapping the code flows in scope and gives each flow its own sub-agent at high effort, which reviews that flow end to end against this checklist; the main agent merges, re-checks Blockers and de-duplicates. Covers single-flow reviews, nested sub-agents, failed sub-agents and environments without sub-agents.
v1.6.1Nov 10, 2026

Fixed

  • App-run email verification blocks everything that reads or changes account data, leaving sign-in, sign-out, verify and resend open so the user can complete verification.
v1.6.0Nov 6, 2026

Changed

  • Review report rule: reviews that cover changes (a diff, PR or uncommitted work) open with a short "What the changes do" section - factual bullets grouped by purpose, inferred intent marked, deploy or migration impact stated.
v1.5.0Nov 5, 2026

Added

  • Deletion: a processor without a delete API gets a logged, tracked deletion request through its console or support, and data kept on purpose is disclosed.
  • Email ownership at sign-up: an account isn't usable or claimable until the address is proven, and turning provider confirmation off needs an app-enforced verification that also stops pre-account takeover. Added to the core rules and the account-takeover checklist.
v1.4.0Nov 4, 2026

Added

  • Personal data export and deletion: deletion reaches the tables, storage, indexes, caches and processors the app can reach, and any store it can't reach is listed for the user with its retention; export returns only the user's own data; stated retention periods are enforced by a job; page promises match the code. These checks came from the privacy skill, which left the library; they live here now.
v1.3.0Nov 4, 2026

Changed

  • Review report rule at the top of the skill, loaded before any review: one entry per finding as Level · type · file:line · finding · proposed fix, outside facts sourced or marked unverified, and no narrative.
  • Removed the privacy skill from Pairs with; it left the library.
v1.2.2Oct 31, 2026

Changed

  • References updated for renamed skills: supabase is now supabase-platform, eas-workflows is now eas-workflows-ci, skill-creator is now skill-creator-aiskillz.
v1.2.1Oct 30, 2026

Changed

  • README "Pairs with" now lists multi-tenancy (organizations, invitations, member removal).
v1.2.0Oct 16, 2026

Added

  • references/token-and-session-architecture.md: token and session architecture (sessions vs JWTs, refresh rotation with reuse detection, PKCE, TOTP MFA) - merged from the former auth-architecture skill.
v1.1.0Oct 3, 2026

Changed

  • Checked against the official documentation (October 2026).
  • Added that SMS/phone OTP is a restricted authenticator, that a phishing-resistant option (passkeys) is expected, and baseline session lifetimes (24 hours overall, 1 hour idle).
  • Updated 2 review checklist items and added 1.

Fixed

  • Corrected password length guidance to NIST SP 800-63B-4: at least 15 characters when the password is the only factor (8 only with MFA), at least 64 allowed, blocklist checks, no composition rules or forced rotation.
v1.0.1Oct 3, 2026

Changed

  • Added a trademark notice to the README.
v1.0.0Oct 2, 2026

Added

  • First release.