Skip to content

Repository files navigation

Lambda Authorizer Utils

Collection of utility functions / helpers to help with building Api Gateway Lambda Authorizer easier with Typescript

Install

yarn add @distinction-dev/lambda-authorizer-utils

Modules

Usage

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();};

Docs

Full docs here

About

Collection of utilities and helper functions to make working with Lambda Authorizers easy

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages