Loading
Current section: Authentication 6 exercises
Problem

Passkeys

Loading exercise

Transcript

00:00 Another way the users can log in into our app is by using their passkey. A passkey is a type of passwordless authentication that often uses biometric data, gets stored on the user's device, and is really secure. Here's how it looks like in practice. On the login page, the user can scroll down and choose this login with a passkey option. Once they do, they will be presented with this pop up that will list all the passkeys they have suitable for our app.

00:26 I don't have any registered right now, so there's nothing to choose from. But the users who do will be able to click on their passkey and successfully log in. In this exercise, your task will be to write an end to end test for the authentication flow that uses a passkey. Similarly to the two factor authentication, a public part of the passkey will be stored in the database, so make sure to provision that as a part of your test setup. You will use a third party library to help you generate viable passkeys, and also some built in APIs in Playwright to prompt this passkey selection in the browser.

00:58 So give it your best and see you once you're done.