Authentication Types
AuthPayload
JWT payload structure returned after token verification.AuthContext
Authentication context attached to requests after verification.VerifyAuthOptions
Configuration options for token verification.Express Types
ExpressRequest
Extended Express request interface with authentication context.ExpressResponse
Express response interface for middleware.ExpressNext
Express next function type.Next.js Types
NextRequest
Next.js request interface for route handlers and middleware.Cookie accessor for Next.js requests
NextResponse
Next.js response interface for route handlers.Send JSON response with optional status code