Skip to main content
GET
/
api
/
v1
/
google-auth
/
get-tokens
Get Google Tokens
curl --request GET \
  --url http://localhost:8000/api/v1/google-auth/get-tokens \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 123,
    "user_info": {
      "sub": "<string>",
      "name": "<string>",
      "email": "[email protected]",
      "email_verified": true,
      "given_name": "<string>",
      "family_name": "<string>",
      "picture": "<string>"
    },
    "token": "<string>",
    "refresh_token": "<string>"
  }
]

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Response

200 - application/json

Successful Response

id
integer
required
user_info
UserInfoSchema · object
required

The schema for a user's info from Google.

token
string
required
refresh_token
string
required