Passkey Authentication with Express.js and Docker – Web Authentication API Tutorial
via freeCodeCamp
Overview
Build a passkey authentication system using the Web Authentication API in this comprehensive tutorial. Develop an Express.js application connected to a Postgres database through Sequelize, all running in a Docker container. Learn about prerequisites, setting up the development environment, configuring Sequelize and Postgres, creating routes and controllers, designing frontend views, and implementing public key credentials. Explore Passport.js configuration, session management, and gain an overview of passkeys. Master the two-phase process of attestation/registration and assertion/login, and implement a logout feature. Conclude with a recap of the entire passkey authentication implementation process.
Syllabus
⌨️ Introduction
⌨️ Prerequisites
⌨️ Expected end result
⌨️ Getting started
⌨️ Configure Sequelize
⌨️ Set up Postgres
⌨️ Routes and controllers
⌨️ Frontend views
⌨️ Public key credentials
⌨️ Configure Passport.js
⌨️ Sessions
⌨️ Passkeys overview
⌨️ Phase 1: attestation/registration
⌨️ Logout
⌨️ Phase 2: assertion/login
⌨️ Recap
Taught by
freeCodeCamp.org