Skip to content
Sign in Create account

Handle Google sign-in callback (form post)

POST /api/v1/auth/social/google/callback

Handles a provider callback submitted as a form post.

This operation needs no authentication.

Parameters

  • state string query

    One-time OAuth state.

    Length: at most 128 characters
  • code string query

    Authorization code returned by Google.

    Length: at most 2048 characters
  • error string query

    Provider error when authorization was denied.

    Length: at most 128 characters

Request body (optional)

application/json object

  • code string
  • error string
  • state string

Example

{
  "code": "example-value",
  "error": "example-value",
  "state": "example-value"
}

Responses

302 Redirect to configured return target.

400 The sign-in state is invalid or expired.

application/json PrivacyError

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string
429 The request rate limit was exceeded.

application/json PrivacyError

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string

text/html string

501 Social sign-in is not configured.

application/json PrivacyError

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string