VibeLogin Documentation
VibeLogin is an authentication platform you can set up from your IDE or with a Next.js SDK. Use the MCP server to let your AI agent handle everything, or install the SDK manually in 5 minutes. Either way you get email/password, magic links, password reset, email verification, and Google/GitHub login out of the box.
Redirect vs Embedded
Choose the integration style that fits your app. Most features work in both modes. Embedded mode renders forms inline on your site; redirect mode uses VibeLogin's hosted pages.
| Feature | Redirect | Embedded |
|---|---|---|
| Email / password login | ✓ | ✓ |
| Magic links | ✓ | ✓ |
| Email OTP (6-digit code) | ✓ | ✓ |
| Password reset | ✓ | ✓ |
| Email verification | ✓ | ✓ |
| Google / GitHub OAuth | ✓ | ✓ |
| Hosted login pages | ✓ | — |
| Login form in your app | — | ✓ |
| Auto-detects enabled methods | — | ✓ |
Prerequisites
- Next.js 14+ with App Router
- Node.js 18+
- A VibeLogin project (create one at app.vibelogin.com)
Fastest path: Set up the MCP server — say "add auth" in your IDE and it's done.
Manual setup: Follow the quickstart — 3 files, 5 minutes.
Explore the docs
MCP Server
Set up auth from Cursor, Claude Code, Windsurf, or Cline. Zero config.
Quickstart
Install the SDK and get auth working in under 5 minutes.
Redirect Mode
Send users to a hosted login page and receive them back authenticated.
Embedded Mode
Render login forms directly inside your app. Email/password, magic links, email OTP, OAuth — all inline.
Middleware
Protect routes and manage sessions at the edge with Next.js middleware.
Server Helpers
Access user sessions and tokens in Server Components and Route Handlers.
Client Hooks
React hooks for client-side session state, login, and logout.
Security
How VibeLogin handles passwords, tokens, sessions, and encryption.
OAuth (Google & GitHub)
Enable social login with Google and GitHub in a few lines of config.
REST API Reference
Complete reference for the VibeLogin REST API endpoints.