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

Osu 提供者

資源

設定

回調 URL

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

環境變數

AUTH_OSU_ID
AUTH_OSU_SECRET

組態

/auth.ts
import NextAuth from "next-auth"
import Osu from "next-auth/providers/osu"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [Osu],
})

注意事項

  • osu! 不提供使用者電子郵件。
Auth.js © Balázs Orbán 和團隊 -2024