Begin an OAuth sign-in and return the provider authorization URL
Returns a signed provider authorization URL instead of redirecting
directly, so clients choose between following it (browser) or opening
it in a web session (React Native). Every redirect-bearing field is
validated against trustedOrigins; custom schemes (e.g.
myapp://, exp://) are allowed only when configured.
POST
/api/auth/sign-in/socialRequest body
requiredapplication/jsonproviderstringrequiredcallbackURLstringApp URL to land on after the provider round-trip.
errorURLstringnewUserURLstringrequestSignUpbooleanlinkbooleanLink this provider account to the signed-in user.
landingVerifierstringCookie-bound landing verifier for token-mode flows. The SSR boundary substitutes the cookie value; never trust a body-supplied value when the cookie exists.
Responses
200
Signed provider URL to navigate to.
successbooleanAllowed:
trueurlstring<uri>redirectboolean400
Unknown provider or an untrusted redirect parameter
(invalid_callback_url, invalid_error_url,
invalid_new_user_url).
successbooleanrequiredAllowed:
falsereasonstringrequired