JSPM

justauthenticateme-apigateway-auth

0.0.7
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1
    • Score
      100M100P100Q49327F
    • License MIT

    AWS API Gateway Custom Authorizer for https://www.justauthenticate.me

    Package Exports

    • justauthenticateme-apigateway-auth

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (justauthenticateme-apigateway-auth) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    JustAuthenticateMe logo

    code style: prettier types: typescript

    JustAuthenticateMe AWS API Gateway Custom Authorizer Function

    Introduction

    JustAuthenticateMe offers simple magic link based authentication as a service for web apps. This is a AWS API Gateway Custom Authorizer function that you can drop into your serverless backend to authenticate incoming requests. It uses the JustAuthenticateMe Node SDK under the hood to verify incoming requests and pass the user's email on to your endpoint handler.

    Getting Started

    Installing via npm or yarn

    npm install --save justauthenticateme-apigateway-auth
    yarn add justauthenticateme-apigateway-auth

    Importing

    import authHandler from "justauthenticateme-apigateway-auth";

    Using the library

    Pass your App ID from the JustAuthenticateMe dashboard to the function. The result is your JustAuthenticateMe auth lambda!

    const appId = "dcd6555e-edff-4f3d-83c9-3af79ea8f895";
    export const handler = authHandler(appId);

    TODO Requires Request type, etc.

    How it works

    TODO how it passes email to actual endpoint lambda

    License

    MIT