> ## Documentation Index
> Fetch the complete documentation index at: https://docs.member.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Callback

> Handle Google's response and redirect to the platform with a one-use exchange code.

An existing account whose email is not verified is never linked here: it
is mailed a one-time verification link, and the exchange code then
answers 202 `verification_email_sent` instead of a session.



## OpenAPI

````yaml /openapi/mio-openapi.json get /api/v1/auth/google/callback
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/auth/google/callback:
    get:
      tags:
        - auth
      summary: Callback
      description: >-
        Handle Google's response and redirect to the platform with a one-use
        exchange code.


        An existing account whose email is not verified is never linked here: it

        is mailed a one-time verification link, and the exchange code then

        answers 202 `verification_email_sent` instead of a session.
      operationId: auth.get_auth_get_auth_google_callback
      parameters:
        - in: query
          name: state
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: State
        - in: query
          name: code
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Code
        - in: query
          name: error
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Error
      responses:
        '303':
          content:
            application/vnd.api+json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.