Skip to content

onRequest

onRequest(context, next): void | Promise<void> | Response | Promise<Response>

Parameters

context: APIContext<Record<string, any>, Record<string, undefined | string>>

next: MiddlewareNext

Returns

void | Promise<void> | Response | Promise<Response>

Defined in

packages/studiocms_auth/src/middleware/index.ts:100