Avycenna

Google OAuth — web callback

Google redirects here after consent. Exchanges the code for tokens, upserts the user, then redirects to the web app with Avycenna tokens in the URL fragment.

GET
/api/v1/auth/oauth/google/callback

Query Parameters

code?string|null
error?string|null

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/auth/oauth/google/callback"
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string"    }  ]}