跳至內容
從 NextAuth.js v4 遷移?請閱讀 我們的遷移指南.

Yandex 供應商

資源

設定

回呼 URL

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

環境變數

AUTH_YANDEX_ID
AUTH_YANDEX_SECRET

組態設定

/auth.ts
import NextAuth from "next-auth"
import Yandex from "next-auth/providers/yandex"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [Yandex],
})
Auth.js © Balázs Orbán 與團隊 -2024