DEV Community

Password-less authentication in NextJS application with WebAuthn and NextAuth

Jonatan Sombié on October 04, 2021

This tutorial explains step by step how to implement passwordless authentication with Email link and WebAuthn using NextAuth library in a NextJS ap...
Collapse
 
allthecode profile image
Simon Barker

Great post, thanks. Two minor updates I had to make to get this to work in the [...nextauth].ts file

 adapter: MongoDBAdapter(clientPromise),
 session: {
   strategy: "jwt",
 },
Enter fullscreen mode Exit fullscreen mode

other than that, all still valid

Collapse
 
kopeboy profile image
Lorenzo Giovenali

What can you do later with the private key? Can you ask the device to generate it in some specific format?

If a user's device has existing keys, can he chose a specific one to provide?