Skip to content

mitchellsimoens/poc-passkey-mfa-auth

Repository files navigation

poc-passkey-mfa-auth

Project Overview

This project is a Proof of Concept (PoC) to explore the implementation of passkeys and Time-based One-Time Password (TOTP) for Multi-Factor Authentication (MFA) support. The primary goal of this project is to understand how passkeys work and to gain more knowledge about TOTP for enhancing security through MFA.

Additionally, this project was an experiment in leveraging AI to assist in the development process. Many iterations were made with the help of AI to start the project and work through the code and features.

Features

  • Passkey authentication
  • TOTP for MFA support
  • Backend built with Fastify
  • Frontend integration

Getting Started

Prerequisites

  • Bun - A fast all-in-one JavaScript runtime. Follow the instructions on the Bun website to install it.

Backend Setup

  1. Navigate to the backend directory:

    cd backend
  2. Install the dependencies:

    bun install
  3. Start the development server:

    bun run dev
  4. To start the production server:

    bun run start

Frontend Setup

  1. Navigate to the frontend directory:

    cd frontend
  2. Install the dependencies:

    bun install
  3. Start the development server:

    bun run dev
  4. To build the frontend for production:

    bun run build

Why This Project?

The motivation behind this project was to:

  1. Understand how passkeys work and their implementation.
  2. Gain more knowledge about TOTP for MFA support.
  3. Experiment with AI-assisted development, allowing AI to start the project and iteratively improve the code and features.

Conclusion

This PoC project serves as a learning tool for implementing passkeys and TOTP for MFA. It also demonstrates the potential of AI in assisting with software development, making the process more efficient and iterative.

Feel free to explore the code and contribute to the project!


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published