@n4it/utility-api-key
Version:
Package to manage API Keys in NestJS.
6 lines (5 loc) • 407 B
TypeScript
import { type AuthenticatedClient } from '../models/authenticated-client';
export declare const toSeconds: (time: number) => number;
export declare const getCurrentTimeInSeconds: () => number;
export declare const isJwtTokenExpired: (token: AuthenticatedClient) => boolean;
export declare const createVerifyJwtToken: (secret: string) => (token: string) => Promise<AuthenticatedClient<AuthenticatedClient>>;