Skip to content
Sign in Create account

Complete consumer social sign-in

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

Handles the Google GET or Apple-compatible callback, validates state, and redirects to the allowlisted builder return URL with a single-use exchange code. The bearer token is never placed in the URL.

This operation needs no authentication.

Parameters

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

    Provider authorization code.

  • state string query

    Opaque state issued by the redirect endpoint.

  • error string query

    Provider-side denial/error, when present.

  • error_description string query

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.