Avycenna

Google sign-in — native apps

Native sign-in with a Google `id_token` (Android Credential Manager, Google Sign-In for iOS). The token is verified with Google and must be issued to one of this deployment's client IDs. Returns Avycenna tokens.

POST
/api/v1/auth/oauth/google/native

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

A Google ID token from Android Credential Manager or Google Sign-In for iOS.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/auth/oauth/google/native" \  -H "Content-Type: application/json" \  -d '{    "id_token": "string"  }'
{  "access_token": "string",  "refresh_token": "string",  "token_type": "bearer",  "user": {    "id": "string",    "name": "string",    "email": "string",    "image": "string",    "role": "patient"  }}
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string"    }  ]}