@adonisjs/shield
Version:
A middleware for AdonisJS to keep web applications secure from common web attacks
15 lines (14 loc) • 360 B
TypeScript
import { PluginFn } from '@japa/runner/types';
declare const CSRF_ENABLED: unique symbol;
declare module '@japa/api-client' {
interface ApiRequest {
[CSRF_ENABLED]: boolean;
withCsrfToken(): this;
}
}
/**
* Configures the API client plugin to support CSRF
* tokens
*/
export declare const shieldApiClient: () => PluginFn;
export {};