Exchange an OAuth authorization code for JWT tokens.
cURL
curl --request POST \ --url https://api.buildwithtrace.com/api/v2/auth/exchange-code \ --header 'Content-Type: application/json' \ --data ' { "code": "<string>", "provider": "google" } '
{ "access_token": "<string>", "refresh_token": "<string>", "token_type": "bearer", "user": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "email": "jsmith@example.com", "full_name": "<string>", "plan": "free", "avatar_url": "<string>", "created_at": "2023-11-07T05:31:56Z" } }
OAuth authorization code
OAuth provider
google
github
Tokens issued
"bearer"
Show child attributes
Was this page helpful?