Palbase Auth API · API
/auth/oauth/transactionsBegin a social sign-in
Starts a sign-in with a provider: answers the provider URL to open (browser) or the parameters for the native SDK. With a session, the identity is linked to the signed-in user instead. A guest's session links at any age, and the guest becomes an account with the provider under the same id. It takes the provider's address only when the provider hosts it (then confirmed); when another account holds that address, completing answers 409 email_exists and nothing changes. A session opened as a guest that has since become an account is asked for a sign-in, as any credential change asks. Linking a provider to the signed-in account is refused the same way while its email address is not confirmed (403 email_unconfirmed).
Called by your app, with the publishable key.
Request body
auth_request_idstring · optionalThe OAuth authorization request this sign-in is for: the `auth_request_id` /oauth/authorize sent the browser to the project's sign-in page with. Bound here and kept with the transaction; a `signed_in` completion completes it, with the provider as the method (`amr`), and answers `oidc_callback_url`; an `mfa_required` one carries it in its `mfa_token`, and the challenge completes it. Only a browser client's sign-in (`purpose: sign_in`) takes one; a request that is not waiting (unknown, expired, completed) is refused with 400 `auth_request_invalid`.client_keystring · requiredcompletion_challengestring · requiredcompletion_challenge_method"S256" · requiredpurpose"sign_in" | "link" · requiredreturn_uristring · optionalcurl -X POST "https://<your-ref>.palbase.studio/auth/oauth/transactions" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "content-type: application/json" \
-d '{"client_key":"string","completion_challenge":"string","completion_challenge_method":"S256","purpose":"sign_in"}'Responses
201Operation completed
400Bad Request
401Unauthorized
403Forbidden
404Not Found
409Conflict
410Gone
413Request Entity Too Large
422Unprocessable Entity
429Too Many Requests
503Service Unavailable
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation SocialBegin of auth's contract.