Custom Lambda Authorizer will output the claims directly in the authorizer object, while the Cognito User Pool token validator outputs the claims under authorizer.claims object, which prevents the claims from being loaded at all, cause the code in PostCreateContext is looking in Authorizer.Claims.
Custom Lambda Authorizer will output the claims directly in the authorizer object, while the Cognito User Pool token validator outputs the claims under authorizer.claims object, which prevents the claims from being loaded at all, cause the code in
PostCreateContextis looking in Authorizer.Claims.