Skip to content

Authentication

VibeX provides built-in JWT authentication and password hashing.

Usage

  • Use auth.ts middleware for protected routes
  • Configure JWT secret in vibe.config.ts
  • Use bcryptjs for password hashing

Example

ts
// auth/providers.ts
export function authenticate(ctx) {
  // Custom auth logic
}

See Middleware and Hooks.