Skip to content
Migrating from NextAuth.js v4? Read our migration guide.
Getting Started
Providers
Netlify

Netlify Provider

Resources

Setup

Callback URL

https://example.com/api/auth/callback/netlify

Environment Variables

AUTH_NETLIFY_ID
AUTH_NETLIFY_SECRET

Configuration

/auth.ts
import NextAuth from "next-auth"
import Netlify from "next-auth/providers/netlify"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [Netlify],
})
Auth.js © Balázs Orbán and Team - 2024