- Newest
- Most votes
- Most comments
The API reference lists the triggers for both calls in your flow: InitiateAuth invokes pre authentication, among others, and RespondToAuthChallenge invokes post authentication and pre token generation (InitiateAuth, RespondToAuthChallenge). I couldn't find an exception for passkeys. Lambda triggers are configured per user pool, so there's no per-method setting to turn them on. That makes this one for AWS Support.
Until then, the pre token generation trigger, which does fire, can carry your post-sign-in logic. Its triggerSource tells you why tokens are issued, so you can run the logic for sign-ins and skip TokenGeneration_RefreshTokens (Pre token generation trigger). Check which triggerSource arrives for a passkey sign-in before relying on it.
Relevant content
- AWS OFFICIALUpdated a year ago

If my answer was helpful, I would appreciate it if you could mark it as the accepted answer.