UNPKG

@foal/jwt

Version:

Authentication with JWT for FoalTS

5 lines (4 loc) 260 B
import { Context } from '@foal/core'; export declare class RequestValidationError extends Error { } export declare function getJwtFromRequest(request: Context['request'], location: 'token-in-header' | 'token-in-cookie', required: boolean): string | undefined;