Skip to content

authsignal/cognito-lambdas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authsignal + Amazon Cognito lambda examples

This repository contains example lambdas for integrating Authsignal with Amazon Cognito.

It includes the following:

Cognito trigger lambdas

The following lambdas are used for signing in with an Email OTP or SMS/WhatsApp OTP challenge:

API endpoint lambdas

This lambda is used for enrolling additional authentication methods via the Authsignal Client SDK (e.g. passkey):

This lambda is used for setting the email_verified attribute in Cognito:

Installation

yarn install

Configuration

Rename .env.example to .env and provide the values for your AWS and Authsignal configuration.

AWS_REGION=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
USER_POOL_ID=
USER_POOL_CLIENT_ID=
AUTHSIGNAL_SECRET=
AUTHSIGNAL_URL=

Deployment

This example uses Serverless Framework to deploy the lambdas.

yarn deploy --region=YOUR_AWS_REGION

Documentation

For more detailed information on how to integrate Authsignal with Amazon Cognito refer to our official documentation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published