providers/roblox
RobloxProfile
對應於此處記載的使用者結構:https://create.roblox.com/docs/cloud/reference/oauth2(具有個人資料範圍的範例使用者)
繼承自
Record
<string
,any
>
屬性
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,
}),
],
})
資源
參數
參數 | 類型 |
---|---|
options | OIDCUserConfig <RobloxProfile > |