POST /clients/sync – Synchronizes client applications with auth provider.
Headers:
Authorization: Bearer <access_token>
Content-Type: application/json or application/x-www-form-urlencoded
Body:
auth0-client
cognito-client
Path Parameters:
Query Parameters:
200 OK
400
401
500
{ "error": "Detailed error message here"} Copy
{ "error": "Detailed error message here"}
POST /clients/sync{} Copy
POST /clients/sync{}
json { "updatedCount": 10,} Copy
json { "updatedCount": 10,}
POST /clients/sync{ "provider": "cognito-client", "userPoolId": "us-east-1_1234test", "product": "exampleProduct"} Copy
POST /clients/sync{ "provider": "cognito-client", "userPoolId": "us-east-1_1234test", "product": "exampleProduct"}
json { "totalDbClients": allDbClients.length, "totalCognitoClients": cognitoClientIds.size, "staleClientsFound": 0, "staleClientsDeleted": 0,} Copy
json { "totalDbClients": allDbClients.length, "totalCognitoClients": cognitoClientIds.size, "staleClientsFound": 0, "staleClientsDeleted": 0,}
The API Gateway event containing the request.
A Promise resolving to an API Gateway-compatible response.
POST /clients/sync – Synchronizes client applications with auth provider.
📥 Request
Headers:
Authorization: Bearer <access_token>(required)Content-Type: application/json or application/x-www-form-urlencoded(required)Body:
auth0-clientif omitted. See ClientProvider.cognito-client. See ClientProvider.Path Parameters:
Query Parameters:
📤 Response
200 OK– Returns updates from the sync (see examples for provider-specific responses).❗ Errors
400401500Error Response Format
📦 Examples
📥 Auth0 Request
📤 Auth0 Response Example
📥 Cognito Request
📤 Cognito Response Example