Exchange handoff code for JWT
Validates the handoff code and returns a JWT token for subsequent requests. Used by the hosted login UI.
POST
/auth/connections/{id}/exchangeValidates the handoff code and returns a JWT token for subsequent requests. Used by the hosted login UI.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Auth connection ID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request to exchange handoff code for JWT
Response
application/json
Exchange successful, JWT returned
Response from exchange endpoint
curl -X POST "https://example.com/auth/connections/string/exchange" \ -H "Content-Type: application/json" \ -d '{ "code": "string" }'{ "invocation_id": "string", "jwt": "string"}{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}