Skip to main content

Complete a Google link using a code+state pair

POST 

/api/v1/auth/link-google

Finalize a Google OAuth link for the authenticated user.

Validates the state token against the state cookie, exchanges the code with Google, and stores the resulting OAuthConnection.

  • 400 if the state is invalid/expired or if the Google account is already linked to a different AISafe user.

Request

Responses

Successful Response