Skip to content
Sign in Create account

Complete consumer social sign-in (form POST)

POST /api/v1/consumer-auth/social/{provider}/callback

Form-post variant of the social callback, used by providers such as Apple. It has the same state validation and exchange-code redirect behavior as the GET callback.

This operation needs no authentication.

Parameters

  • provider string path required
    One of: "google", "apple"

Request body (optional)

application/x-www-form-urlencoded object

  • code string
  • error string
  • error_description string
  • state string

Generated sample

{
  "code": "string",
  "error": "string",
  "error_description": "string",
  "state": "string"
}

Responses

302 Redirect to the builder return URL with cloak_exchange, or a safe failure reason

400 invalid_state

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

404 unknown_provider

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 Rate limit exceeded

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string

501 social_not_configured

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

503 consumer_auth_disabled

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.