Skip to content
Migrating from NextAuth.js v4? Read our migration guide.

Apple Provider

Resources

Setup

Callback URL

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

Environment Variables

AUTH_APPLE_ID
AUTH_APPLE_SECRET

Configuration

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