MandarineSecurity.Auth.Handler
import type { MandarineSecurity } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mod.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;§Properties
§
onFailure: (request: Request, response: Response, result: AuthenticationResult) => void
[src]§
onSuccess: (request: Request, response: Response, result: AuthenticationResult) => void
[src]