Sign up with OAuth provider
Initiate OAuth signup flow with the specified provider. Redirects to the provider's authorization page. Use this endpoint to explicitly register a new account. When AUTH_DISABLE_AUTO_SIGNUP is enabled, this is the only way to register through this method. If the user already exists at callback time, they are redirected with error=user-already-exists.
Path parameters
The name of the social provider
Query parameters
Array of allowed roles for the user
[ "me", "user" ]
Default role for the user
Display name for the user
A two or three characters locale
Additional metadata for the user (JSON encoded string)
URI to redirect to
Opaque state value to be returned by the provider
Additional provider-specific parameters
Extra parameters forwarded to the upstream OAuth2 provider's authorization URL (e.g. Google's prompt or login_hint). Reserved OAuth2/OIDC parameters are rejected.
Extra parameters forwarded to the upstream OAuth2 provider's authorization URL. Reserved OAuth2/OIDC parameters are rejected.
PKCE code challenge (S256). When provided, the callback redirect will contain an authorization code instead of a refresh token.
Response
An error occurred while processing the request
Example response
{
"status": 400,
"message": "Invalid email format"
}