Start social authentication REST API
POST
/api/auth/social/{provider}/start
const url = 'http://127.0.0.1:25737/api/auth/social/google/start';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"flow":"login","invite_token":"example","remember_me":true,"return_url":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://127.0.0.1:25737/api/auth/social/google/start \ --header 'Content-Type: application/json' \ --data '{ "flow": "login", "invite_token": "example", "remember_me": true, "return_url": "example" }'Starts a login, signup, or invitation flow using authorization code, browser-bound one-time state, PKCE S256, and an OIDC nonce where applicable. Return URLs are restricted to safe local application paths.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”provider
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
flow
required
string
invite_token
string
remember_me
boolean
return_url
Optional safe local application path.
string
Responses
Section titled “Responses”Provider authorization URL
Media typeapplication/json
object
auth_url
required
string format: uri
Examplegenerated
{ "auth_url": "https://example.com"}Invalid flow
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}Provider or social signup unavailable
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}Provider unavailable
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}