providers/roblox
RobloxProfile
对应于此处记录的用户结构:https://create.roblox.com/docs/cloud/reference/oauth2 (带有 Profile 范围的示例用户)
扩展
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 > |