Apple Provider
Resources
- Sign in with Apple Overview
- Sign in with Apple REST API
- How to retrieve the user’s information from Apple ID servers
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],
})