@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 • 418 B
text/typescript
import type { FastifyRequest } from 'fastify';
declare module 'fastify' {
interface FastifyRequest {
user?: any;
}
}
export declare function authenticateToken(accessSecret: string): (request: FastifyRequest, reply: any) => Promise<any>;
export declare function authenticateRefreshToken(refreshSecret: string): (request: FastifyRequest, reply: any) => Promise<any>;
//# sourceMappingURL=fastify.d.ts.map