Skip to main content
POST
/
api
/
auth
/
social
/
exchange
Exchange social login code for tokens
curl --request POST \
  --url https://api.example.com/api/auth/social/exchange \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>"
}
'
{
  "access_token": "<string>",
  "refresh_token": "<string>",
  "token_type": "bearer"
}

Body

application/json

Request schema for exchanging a social login one-time code for tokens.

code
string
required

Response

Successful Response

Response schema for authentication tokens.

access_token
string
required
refresh_token
string
required
token_type
string
default:bearer