Type Alias OnRedirectHook
OnRedirectHook: (
evt: RedirectEvent,
ctx: HookContext,
) => Promise<boolean | void> | boolean | void
Type Declaration
- (evt: RedirectEvent, ctx: HookContext): Promise<boolean | void> | boolean | void
Parameters
- evt: RedirectEvent
- ctx: HookContext
Returns Promise<boolean | void> | boolean | void
Called on redirect — return false to prevent following the redirect