← @mortar-kit/auth

MiddlewareEventinterface

import { MiddlewareEvent } from '@mortar-kit/auth'

interface MiddlewareEvent

What the middleware reads and writes on the request event (StartRequestEvent fits).

Properties

request: Request
nonce?: string | { script?: string | false; style?: string | false }

The CSP nonce the page render uses; set here when csp is on and nothing set it.