Integration Module 2.0 for Medusa is outRead the announcement
WebAuthn logo

WebAuthn

Enable passwordless authentication

npm install @vymalo/medusa-webauthn
Category
Built by
Version
1.0.2
Last updated
1 year ago
Monthly downloads
Loading downloads

MedusaJS WebAuthn Authentication

๐Ÿ” Passwordless Authentication for MedusaJS using WebAuthn - The Modern, Secure Authentication Standard

๐ŸŒŸ Features

  • Passwordless authentication using WebAuthn
  • Support for hardware and software security keys
  • Enhanced security with public key cryptography
  • Seamless integration with MedusaJS

๐Ÿ”’ WebAuthn Workflow

Detailed Authentication Flow

  1. Registration

    • User initiates registration
    • Server generates registration options
    • Browser creates a unique cryptographic credential
    • Credential verified and saved on server
  2. Authentication

    • User starts login process
    • Server generates authentication challenge
    • User authenticates with security key
    • Server verifies the cryptographic assertion
    • User granted access

๐Ÿ“ฆ Installation

Install the package using npm:

Or using yarn:

๐Ÿš€ Configuration

Plugin Configuration

๐Ÿ›ก๏ธ Security Architecture

Key Security Concepts

  • No Shared Secrets: Uses public-key cryptography
  • Phishing Resistant: Bound to specific origin and application
  • Hardware Key Support: Works with security keys like YubiKey
  • Multi-Factor Capable: Can combine with other authentication methods

๐Ÿ”ง Environment Variables

  • : Your application's name
  • : Domain of your application
  • : Full origin URL

๐Ÿ“ฆ Dependencies

๐Ÿค Contributing

Contributions are welcome! Please submit pull requests or open issues.

๐Ÿ›ก๏ธ Security Reporting

If you discover a security vulnerability, please contact [your security contact].

๐Ÿ“„ License

Check the license