Skip to content
Migrating from NextAuth.js v4? Read our migration guide.
API reference
roblox

providers/roblox

Built-in Roblox integration.

RobloxProfile

Corresponds to the user structure documented here: https://create.roblox.com/docs/cloud/reference/oauth2 (Example User with Profile Scope)

Extends

Properties

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>

Add Roblox login to your page.

Setup

Callback URL

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

Configuration

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,
    }),
  ],
})

Resources

Disclaimer If you think you found a bug in the default configuration, you can open an issue.

Auth.js strictly adheres to the specification and it cannot take responsibility for any deviation from the spec by the provider. You can open an issue, but if the problem is non-compliance with the spec, we might not pursue a resolution. You can ask for more help in Discussions.

Parameters

ParameterType
optionsOIDCUserConfig<RobloxProfile>

Returns

OIDCConfig<RobloxProfile>

Auth.js © Balázs Orbán and Team - 2024