netlify avatar

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-code

Installs 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.com to flip or read Identity settings, never read tokens from local Netlify config, and never probe undocumented endpoints. Enable and configure Identity at https://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/secret in source, and no custom callback token exchange. Use oauthLogin() + 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

More from netlify/context-and-tools

All 14
1web-infra-dev avatarios-device-automationweb-infra-dev/midscene-skillsVision-driven iOS device automation using Midscene CLI. Operates entirely from screenshots — no DOM or accessibility labels required. Can interact with all visi3.2Kskills.sh installs
2freshtechbro avatarlottie-animationsfreshtechbro/claudedesignskillsAfter Effects animation rendering for web and React applications. Use this skill when implementing Lottie animations, JSON vector animations, interactive animat3.1Kskills.sh installs
3nexu-io avatarremotionnexu-io/open-designProgrammatic video creation with React. Useful for branded explainers, social cuts, dashboards-to-video, and reproducible motion graphics.3.1Kskills.sh installs
4openai avatarfigma-generate-designopenai/skillsUse this skill alongside figma-use when the task involves translating an application page, view, or multi-section layout into Figma. Triggers: 'write to Figma',3Kskills.sh installs
5freshtechbro avatarspline-interactivefreshtechbro/claudedesignskillsBrowser-based 3D design tool with visual editor, animation, and web export. Use this skill when creating 3D scenes without code, designing interactive web exper3Kskills.sh installs
6meodai avatarcolor-expertmeodai/skill.color-expertUse when working with color naming, color theory, color spaces, color definitions, or any task involving color knowledge - palettes, ramps, gradients, conversio2.9Kskills.sh installs