Headers:
Body:
Path Parameters:
Query Parameters:
200 OK
400
401
500
{ "error": "Detailed error message here"} Copy
{ "error": "Detailed error message here"}
POST /auth/refresh{ "refresh_token": "your_refresh_token", "client_id": "your_client_id"} Copy
POST /auth/refresh{ "refresh_token": "your_refresh_token", "client_id": "your_client_id"}
{ "access_token": "string", "refresh_token": "string", "token_type": "Bearer", "expires_in": 3600, "provider": "cognito-s2s"} Copy
{ "access_token": "string", "refresh_token": "string", "token_type": "Bearer", "expires_in": 3600, "provider": "cognito-s2s"}
The API Gateway event containing the request.
A Promise resolving to an API Gateway-compatible response.
POST /auth/refresh – Handles token refresh requests.
📥 Request
Headers:
Body:
Path Parameters:
Query Parameters:
📤 Response
200 OK– JSON stringified object representing the generated token. See GetTokenResponse.❗ Errors
400401500Error Response Format
📦 Examples
📥 Request
📤 Response Example