import { type MandarineSecurity } from "https://deno.land/x/mandarinets@v2.3.2/mod.ts";
const { UserDetails } = MandarineSecurity.Auth;
Interface for the minimum of information a user model must have when using Mandarine's built-in authentication.
Properties
roles: Array<GrantedAuthority> | Array<string>
Returns an array with the roles the current user has. Cannot return null nor undefined inside the array. Ex: ["ADMIN", "MODERATOR", "USER"]