@the-node-forge/jwt-utils
Version:
A flexible, lightweight Node.js JWT library for generating, verifying, and managing JSON Web Tokens (JWTs). Supports access and refresh tokens with customizable secrets for authentication and role-based access control. Includes middleware for Express, Fas
9 lines • 489 B
text/typescript
import type { Request, ResponseToolkit, Lifecycle } from '@hapi/hapi';
declare module '@hapi/hapi' {
interface RequestApplicationState {
user?: any;
}
}
export declare function authenticateToken(accessSecret: string): (request: Request, h: ResponseToolkit) => Promise<Lifecycle.ReturnValue>;
export declare function authenticateRefreshToken(refreshSecret: string): (request: Request, h: ResponseToolkit) => Promise<Lifecycle.ReturnValue>;
//# sourceMappingURL=hapi.d.ts.map