Headers:

  • Content-Type: application/json or application/x-www-form-urlencoded (required)

Body:

  • refresh_token: string (required)
  • client_id: string (required)

Path Parameters:

  • None

Query Parameters:

  • None

  • 200 OK – JSON stringified object representing the generated token. See GetTokenResponse.

Status Code Meaning When it Happens
400 Bad Request Missing or invalid fields in request body
401 Unauthorized If refresh token is invalid or expired
500 Internal Server Error Unexpected error
{
"error": "Detailed error message here"
}

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"
}

  • Parameters

    • event: APIGatewayProxyEvent

      The API Gateway event containing the request.

    • context: Context
    • callback: Callback<APIGatewayProxyResult>

    Returns void | Promise<APIGatewayProxyResult>

    A Promise resolving to an API Gateway-compatible response.