Menu

Adding Passkeys to an Amazon Cognito Lite User Pool with Custom Auth Lambda Triggers
πŸ“°

Adding Passkeys to an Amazon Cognito Lite User Pool with Custom Auth Lambda Triggers

DEV Community: awsΒ·shannonllcΒ·about 6 hours ago
#Ie2QAfTj
#devtoaws#devto#dev#cognito#passkey
Long article (2457 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Amazon Cognito has built-in passkey sign-in, but only on the Essentials and Plus feature plans. A user pool on the Lite plan doesn't get it. We wanted to know whether a Lite pool could still offer passkeys, so we tried it: the custom authentication Lambda triggers call an external passkey API, and Cognito keeps doing everything else. It works, and this post walks through the whole setup with the AWS CLI.

We use SealGate for passkey registration and verification. Cognito still issues the ID token, access token and refresh token after a successful sign-in, so the token verification in your app doesn't change.

How it fits together

Sign-in follows Cognito's custom authentication flow ( CUSTOM_AUTH ):

The browser calls Cognito's InitiateAuth with the username.

Cognito invokes the Create Lambda.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.