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

MandarineSecurity.Auth.UserDetailsService

import type { MandarineSecurity } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mod.ts"; 

const { UserDetailsService } = MandarineSecurity.Auth;

Interface for a mandarine-powered component (type service) which will be used for built-in authentication

interface UserDetailsService {
loadUserByUsername: (username: string, httpContext?: Mandarine.Types.RequestContext) => UserDetails | undefined;
}

§Properties

§
loadUserByUsername: (username: string, httpContext?: Mandarine.Types.RequestContext) => UserDetails | undefined
[src]

Locates the user based on the username.