Collection of utility functions / helpers to help with building Api Gateway Lambda Authorizer easier with Typescript
yarn add @distinction-dev/lambda-authorizer-utilsVerifiers
Utils
import{AuthorizerResponse}from"@distinction-dev/lambda-authorizer-utils";exportconstauthorizer=(event: APIGatewayRequestAuthorizerEvent)=>{constresponse=newAuthorizerResponse("<principal_id>","<aws_region>","<aws_account_id>","<api_id>","<api_stage>");response.addRoute("GET","/test");returnresponse.getPolicy();};Full docs here