This repository contains example lambdas for integrating Authsignal with Amazon Cognito.
It includes the following:
The following lambdas are used for signing in with an Email OTP or SMS/WhatsApp OTP challenge:
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:
yarn install
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=
This example uses Serverless Framework to deploy the lambdas.
yarn deploy --region=YOUR_AWS_REGION
For more detailed information on how to integrate Authsignal with Amazon Cognito refer to our official documentation.