
Netlify Identity
This handles Netlify's built-in user management: signups, logins, password recovery, OAuth, and role-based access control. It's a hard requirement to use @netlify/identity, not the deprecated widget or gotrue-js libraries. The API is headless and works in both browser and server contexts, which matters if you're protecting Netlify Functions or working in SSR frameworks. One friction point: it doesn't work with netlify dev yet, so you'll need to deploy preview builds to test auth flows. Registration is open by default, and OAuth providers like Google and GitHub need to be toggled on in project settings before they'll work.
- skills.sh installs
- 3.2K
- GitHub stars
- 51
- last updated
- Aug 21, 2026
Install
$ npx -y skills add netlify/context-and-tools --skill netlify-identity --agent claude-codeInstalls into .claude/skills of the current project.
Files
Netlify Identity
Use @netlify/identity (npm). For new projects it replaces the legacy netlify-identity-widget and gotrue-js. Do not reach for those.
npm install @netlify/identity
Framework examples (Next.js/Astro/Remix/SvelteKit) and the full API reference are in the @netlify/identity README on npm.
Identity does not run under
netlify dev. Test all auth flows on a deploy. Deploy Previews work. Local dev will not complete signup/login/OAuth.
Identity config is dashboard-only. There is no public API. Never curl
api.netlify.comto flip or read Identity settings, never read tokens from local Netlify config, and never probe undocumented endpoints. Enable and configure Identity athttps://app.netlify.com/projects/{site_name}/identity.
Never build a from-scratch OAuth flow alongside Identity. No provider app registration in code, no
client_id/secretin source, and no custom callback token exchange. UseoauthLogin()+handleAuthCallback(). Raw OAuth beside Identity is the most common source of rework.
Client auth (browser)
Sponsors
Details
- Repository
- github.com/netlify/context-and-tools
- Categories
- Frontend Development, Backend & APIs, Security, Cloud & Infrastructure
- First seen
- Jun 3, 2026