I am using SAM LOCAL and start-api to test my lambda functions using postman. I use Cognito for user authentication and pass the cognito token to the API Gateway. In production, it works fine. I need the username from Cognito (requestContext: authorizer: claims: cognito:username). SAM LOCAL start-api does not provide these.
Any help would be appreciated.