Portfolio

Magic Auth Wrapper

Node.js
Express.js
Magic SDK
Supabase
Tailwind CSS

Starter template for integrating passwordless authentication with Express.js

Project overview

Magic Auth Wrapper is a starting point for implementing passwordless authentication using Magic’s SDKs with Express.js and Tailwind CSS. It provides a lightweight wrapper for integrating Magic’s powerful authentication tools into your web application.

Key features
  • Passwordless Email Login: Authenticate users seamlessly using one-time passwords (OTP) sent via email.
  • Passwordless SMS Login: Enable user authentication using OTPs sent to their mobile phone via SMS.
  • User Token Validation: Verify and decode Magic-issued tokens for secure backend operations.
  • Session Management: After successful validation, the user’s metadata and token are saved in the session, ensuring seamless user experience across multiple interactions.
  • Error Handling: Detects and responds to invalid or expired tokens by logging errors and returning an appropriate response.