JavaScript / TypeScript Hooks
JavaScript / TypeScript Hooks is one of the supported hooks to receive events.
Configure JavaScript / TypeScript Hooks in your Authgear project
Examples
import { HookEvent, HookResponse } from "https://deno.land/x/authgear_deno_hook@v1.6.1/mod.ts";
export default async function(e: HookEvent): Promise<HookResponse> {
// This hook simply allows the operation, which is identical to no-op.
return { is_allowed: true };
}TypeScript Definition
Last updated
Was this helpful?