Apple 提供者
資源
- 使用 Apple 登入 概觀
- 使用 Apple 登入 REST API
- 如何從 Apple ID 伺服器擷取 使用者的資訊
設定
回呼網址
https://example.com/api/auth/callback/apple
環境變數
AUTH_APPLE_ID
AUTH_APPLE_SECRET
組態
./auth.ts
import NextAuth from "next-auth"
import Apple from "next-auth/providers/apple"
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [Apple],
})