Skip to content

Roblox

Roblox OAuth2 (OIDC-shaped userinfo). No PKCE, no id-token direct sign-in.

Configure

python
from better_auth import BetterAuth
from better_auth.oauth.providers_ext import Roblox

auth = BetterAuth(
    secret=...,
    social_providers={
        "roblox": Roblox(client_id="", client_secret=""),
    },
)

Or name-keyed (no import):

python
auth = BetterAuth(
    secret=...,
    social_providers={
        "roblox": {"client_id": "", "client_secret": ""},
    },
)

Options

FieldTypeDefaultNotes
client_idstr | list[str]required
client_secretstrrequired

All shared ProviderConfig options apply.

Notes

  • Default scopes: openid profile.
  • Register {base_url}{base_path}/callback/roblox as the redirect URL on the Roblox OAuth app.
  • The authorize URL carries prompt=select_account consent by default (default authorize_params).
  • Roblox never returns an email: email is filled with preferred_username as a placeholder and email_verified is always False (matching TS). Display name prefers nickname.

MIT licensed · API-compatible with better-auth