MandarineSecurity.Auth.Handler
import type { MandarineSecurity } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/security-core/mandarine-security.ns.ts";
const { Handler } = MandarineSecurity.Auth;
Handler for login/logout whether successful or not. This is executed after login/logout was called (from built-in authentication)
interface Handler {
onFailure: (
request: Request,
response: Response,
result: AuthenticationResult,
) => void;onSuccess: (
}request: Request,
response: Response,
result: AuthenticationResult,
) => void;