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-construct
is a CDK construct which describes Passquito core resources on AWS.@codemonger-io/passquito-client-js
is a JavaScript client library which facilitates the communication with Passquito core resources.
-
Add
@codemonger-io/passquito-cdk-construct
to your CDK project (replace0.0.3-abc1234
with the version you want to install):npm install @codemonger-io/[email protected]
Note that
@codemonger-io/passquito-cdk-construct
is only available from the GitHub npm registry for now. Please refer to itsREADME
for more details. -
Add
@codemonger-io/passquito-client-js
to your web application (replace0.0.2-abc1234
with the version you want to install):npm install @codemonger-io/[email protected]
Note that
@codemonger-io/passquito-client-js
is only available from the GitHub npm registry for now. Please refer to itsREADME
for more details. -
Include
PassquitoCore
in 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-js
in your web application to communicate with Passquito core resources. Please refer to itsREADME
for 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/):