Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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,
) => void
;
onSuccess: (
request: Request,
response: Response,
) => void
;
}

§Properties

§
onFailure: (request: Request, response: Response, result: AuthenticationResult) => void
[src]
§
onSuccess: (request: Request, response: Response, result: AuthenticationResult) => void
[src]