MandarineSecurity.Auth.Authenticator
import type { MandarineSecurity } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mod.ts";
const { Authenticator } = MandarineSecurity.Auth;
Private API to perform authentication (Mandarine's built-in Authentication)
interface Authenticator {
getAuthenticationId: (requestContext: Mandarine.Types.RequestContext) => string | undefined;
performAuthentication: (data: PerformAuthenticationOptions) => [AuthenticationResult, UserDetails | undefined];
performHTTPAuthentication: (data: PerformHTTPAuthenticationOptions) => [AuthenticationResult, UserDetails | undefined];
stopHTTPAuthentication: (requestContext: Mandarine.Types.RequestContext) => void;
}§Properties
§
getAuthenticationId: (requestContext: Mandarine.Types.RequestContext) => string | undefined
[src]§
performAuthentication: (data: PerformAuthenticationOptions) => [AuthenticationResult, UserDetails | undefined]
[src]§
performHTTPAuthentication: (data: PerformHTTPAuthenticationOptions) => [AuthenticationResult, UserDetails | undefined]
[src]§
stopHTTPAuthentication: (requestContext: Mandarine.Types.RequestContext) => void
[src]