Developer Resources | 2Factor

Welcome to the developer hub for 2Factor — your starting point for building secure, modern authentication into your applications using our trusted open-source partner, Mazeway.

We don’t offer APIs or services directly. Instead, we connect you with tools and code that let you own and customise your entire authentication stack.

Build With Confidence

Looking to implement:

  • Secure logins with OTPs?
  • Multi-factor authentication?
  • Passwordless authentication?
  • Session and device tracking?

You’ll find everything you need through Mazeway — an open-source, self-hosted authentication system built specifically for developers using Next.js.


Why Mazeway?

Mazeway is a powerful authentication solution designed for modern web applications. Built by developers, for developers — it gives you full control over your user auth flow, UI, backend logic, and security.

🔧 Features at a Glance

  • Full user flows: Sign up, login, password reset, email verification
  • Multi-Factor Authentication (MFA): TOTP, backup codes, SMS (via third-party services)
  • Self-hosted and customisable — no vendor lock-in
  • Built-in API rate limiting with Redis
  • Clean, responsive UI with Tailwind CSS and Shadcn UI
  • Fully open source and extensible

Technology Stack

  • Next.js 15 — full-stack React with server-side capabilities
  • Supabase — database and auth infrastructure
  • Tailwind CSS — fast, utility-first styling
  • Shadcn UI — clean, modular UI components
  • Resend — email delivery for verification and alerts
  • Upstash Redis — for rate limiting and session control

Get Started

🧑‍💻 Mazeway on GitHub

The easiest way to get going is by cloning the Mazeway repo:

git clone https://github.com/mazeincoding/mazeway.git
cd mazeway
npm install

Follow the setup instructions to configure:

  • Supabase credentials
  • SMTP or Resend email integration
  • Third-party SMS OTP provider (like Twilio, etc.)

Why Use Mazeway Over Third-Party Auth Platforms?

  • Transparency: You own and see every line of code.
  • Security: No third-party has access to your users or sessions.
  • Customisation: Tailor user flows to your exact needs.
  • Scalability: Host it yourself or deploy to any platform.

Mazeway gives you a modern auth experience, without compromise.


Questions?

Although 2Factor does not provide support or services directly, the Mazeway team is active and open to contributions.

 

𝕏 Mazeway on X