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

providers/roblox

內建的 Roblox 整合。

RobloxProfile

對應於此處記載的使用者結構:https://create.roblox.com/docs/cloud/reference/oauth2(具有個人資料範圍的範例使用者)

繼承自

屬性

created_at

created_at: number;

name

name: string;

nickname

nickname: string;

picture

picture: null | string;

preferred_username

preferred_username: string;

profile

profile: string;

sub

sub: string;

default()

default(options): OIDCConfig<RobloxProfile>

將 Roblox 登入新增至您的頁面。

設定

回調 URL

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

組態

import { Auth } from "@auth/core"
import Roblox from "@auth/providers/roblox"
 
const request = new Request(origin)
const response = await Auth(request, {
  providers: [
    Roblox({
      clientId: AUTH_ROBLOX_ID,
      clientSecret: AUTH_ROBLOX_SECRET,
    }),
  ],
})

資源

免責聲明 如果您認為在預設組態中發現錯誤,您可以開啟問題

Auth.js 嚴格遵守規範,對於供應商的任何規格偏差概不負責。您可以開啟問題,但如果問題是不符合規範,我們可能不會尋求解決方案。您可以在討論區中尋求更多協助。

參數

參數類型
optionsOIDCUserConfig<RobloxProfile>

返回值

OIDCConfig<RobloxProfile>

Auth.js © Balázs Orbán 與團隊 -2024