JWT token that is part of the Authorization header is accessible inside the Lambda functions as well. In the below example, I am decoding the JWT token value and checking the values inside it.
This is only possible as we are using the id_token along with access_token value. ID Tokens follow the JWT structure so it is possible to decode and check the values. Access Tokens are not bound to follow the JWT structure and assume to be opaque.