https://github.com/corbado/passkey-tutorial
Repository for Passkey Tutorial using Node.js (Express), JavaScript, MySQL & SimpleWebAuthn
https://github.com/corbado/passkey-tutorial
express faceid fido2 javascript mysql nodejs passkey passkeys simplewebauthn touchid typescript webauthn
Last synced: 14 days ago
JSON representation
Repository for Passkey Tutorial using Node.js (Express), JavaScript, MySQL & SimpleWebAuthn
- Host: GitHub
- URL: https://github.com/corbado/passkey-tutorial
- Owner: corbado
- License: mit
- Created: 2023-12-08T08:17:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-19T11:16:23.000Z (about 1 month ago)
- Last Synced: 2025-03-31T11:03:44.713Z (21 days ago)
- Topics: express, faceid, fido2, javascript, mysql, nodejs, passkey, passkeys, simplewebauthn, touchid, typescript, webauthn
- Language: TypeScript
- Homepage: https://www.corbado.com/blog/passkey-tutorial-how-to-implement-passkeys
- Size: 97.7 KB
- Stars: 90
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Passkey Tutorial: Node.js (Express), JavaScript, MySQL & SimpleWebAuthn
## Introduction
Welcome to repository of the [Passkey Tutorial](https://www.corbado.com/blog/passkey-tutorial-how-to-implement-passkeys)! This [tutorial](https://www.corbado.com/blog/passkey-tutorial-how-to-implement-passkeys) showcases **how to implement passkeys in a simple web app**, thus offering a more secure alternative to traditional passwords. By the end of this tutorial, you will have implemented an **end-to-end passkey** authentication system **without relying on third-party passkey authentication providers**.
## Prerequisites
In the tutorial, we use the following tools and technologies, so having some basic knowledge in these areas is helpful:- **Node.js (Express)**: Utilizes TypeScript for robust backend development with the Express framework.
- **Vanilla HTML & JavaScript/TypeScript**: Implements a straightforward and effective frontend.
- **MySQL**: Manages user data and passkey credentials securely.
- **SimpleWebAuthn**: Handles WebAuthn operations for registration and authentication.## Features
In this passkey tutorial project, we implement the two basic WebAuthn / passkey cereomonies to sign-up / register and log in / authenticate with a passkey.
### Passkey Sign-Up
The passkey sign-up enables users to create new accounts and generate passkeys. Here is the corresponding passkey register flow chart:
### Passkey Login
The passkey login facilitates a secure login using the created passkeys. Here is the corresponding passkey login flow chart:
## How to Use
### Step 1: Clone the Repository
Clone the repository to your local machine:
```sh
git clone https://github.com/corbado/passkeys-tutorial```
### Step 2: Run the Project
Start the project using Docker:
```sh
docker compose up -d
```## License
This project is licensed under the MIT License.
## Support & Feedback
### Report an issue
If you encounter any bugs or have suggestions, please [open an issue](https://github.com/corbado/passkey-tutorial/issues/new).
### Slack channel
Join our Slack channel to discuss questions or ideas with the Corbado team and other developers.
[](https://join.slack.com/t/corbado/shared_invite/zt-2g4etyvxi-otKksMmhMHwWK19aCbhODQ)
You can also reach out to us via email at [email protected].