UNPKG

@foal/core

Version:

Full-featured Node.js framework, with no complexity

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