Fly with Passkey × AWS Cognito = Passquito!
A PoC on passkey authentication inspired by aws-samples/amazon-cognito-passwordless-auth.
Features:
- Rust × AWS Lambda → Snappy cold start!
- AWS Cognito Lambda triggers
- 💩 Ugly codebase
Passquito consists of two packages:
@codemonger-io/passquito-cdk-constructis a CDK construct which describes Passquito core resources on AWS.@codemonger-io/passquito-client-jsis a JavaScript client library which facilitates the communication with Passquito core resources.
-
Add
@codemonger-io/passquito-cdk-constructto your CDK project (replace0.0.3-abc1234with the version you want to install):npm install @codemonger-io/[email protected]
Note that
@codemonger-io/passquito-cdk-constructis only available from the GitHub npm registry for now. Please refer to itsREADMEfor more details. -
Add
@codemonger-io/passquito-client-jsto your web application (replace0.0.2-abc1234with the version you want to install):npm install @codemonger-io/[email protected]
Note that
@codemonger-io/passquito-client-jsis only available from the GitHub npm registry for now. Please refer to itsREADMEfor more details. -
Include
PassquitoCorein your CDK stack:import { Stack } from 'aws-cdk-lib'; import type { Construct } from 'constructs'; import { PassquitoCore } from '@codemonger-io/passquito-cdk-construct'; export class CdkStack extends Stack { constructor(scope: Construct, id: string) { super(scope, id); const passquito = new PassquitoCore(this, 'Passquito'); } }
-
Use
@codemonger-io/passquito-client-jsin your web application to communicate with Passquito core resources. Please refer to itsREADMEfor how to use it.
Please refer to the README of @codemonger-io/passquito-client-js.
Please refer to interactions-under-the-hood.md for how your app, Passquito, and AWS Cognito interact with each other.
Except for the following materials licensed under CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/):
