Appearance
Authentication
VibeX provides built-in JWT authentication and password hashing.
Usage
- Use
auth.tsmiddleware for protected routes - Configure JWT secret in
vibe.config.ts - Use
bcryptjsfor password hashing
Example
ts
// auth/providers.ts
export function authenticate(ctx) {
// Custom auth logic
}See Middleware and Hooks.