Is it possible to implement the AWS_IAM authorizer mechanism in my lambda authorizer?

I have an endpoint “/users” called from another lambda through API Gateway and from the frontend.

I am trying to figure out how to use the same lambda authorizer to authenticate requests from the frontend that uses JWT and requests from an internal service (another lambda) that uses sig4.