API Reference/Social Login (OAuth) POST/v1/auth/oauth/exchangeSendHeadersBodyAuthorizationAuthorizationRequiredBearer <token>In: headerRequest Bodyapplication/jsonRequiredcodestringcURLJavaScriptGoPythoncurl -X POST "https://api.descope.com/v1/auth/oauth/exchange" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "code": "string" }'200OKResponse{ "sessionJwt": "string", "refreshJwt": "string", "cookieDomain": "string", "cookiePath": "string", "cookieMaxAge": 0, "cookieExpiration": 0, "user": { "loginIds": [ "string" ], "userId": "string", "name": "string", "email": "string", "phone": "string", "verifiedEmail": true, "verifiedPhone": true, "roleNames": [ "string" ], "userTenants": [ { "tenantId": "string", "roleNames": [ "string" ], "tenantName": "string" } ], "status": "string", "externalIds": [ "string" ], "picture": "string", "test": false, "customAttributes": {}, "createdTime": 0, "TOTP": false, "SAML": false, "OAuth": { "property1": false, "property2": false }, "webauthn": true, "password": true, "ssoAppIds": [ "string" ], "givenName": "string", "middleName": "string", "familyName": "string", "editable": true, "SCIM": true }, "firstSeen": true, "idpResponse": { "samlResponse": "string", "samlGeneratedUser": "string", "samlGeneratedRoles": "string", "oidcResponse": "string", "oidcGeneratedUser": "string", "oidcGeneratedRoles": "string", "idpGroups": [ "string" ] }, "sessionExpiration": 0 }TypeScript Was this helpful?PreviousStarts a full OAuth flow using native APIs POSTNextFinishes a full OAuth flow using native APIs POST