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
| Field | Type | Default | Notes |
|---|---|---|---|
client_id | str | list[str] | required | |
client_secret | str | required |
All shared ProviderConfig options apply.
Notes
- Default scopes:
openid profile. - Register
{base_url}{base_path}/callback/robloxas the redirect URL on the Roblox OAuth app. - The authorize URL carries
prompt=select_account consentby default (defaultauthorize_params). - Roblox never returns an email:
emailis filled withpreferred_usernameas a placeholder andemail_verifiedis alwaysFalse(matching TS). Display name prefersnickname.