Skip to main content
Module

x/mandarinets/mod.ts>MandarineSecurity.Auth.RequestAuthObj

Mandarine.TS is a typescript, decorator-driven framework that allows you to create server-side applications. Mandarine.TS provides a range of built-in solutions such as Dependency Injection, Components, ORM and more. Under its umbrella, Mandarine.TS has 4 modules: Core, Data, Security and MVC, these modules will offer you the requirements to build a Mandarine-powered application.
Latest
interface MandarineSecurity.Auth.RequestAuthObj
import { type MandarineSecurity } from "https://deno.land/x/mandarinets@v2.3.2/mod.ts";
const { RequestAuthObj } = MandarineSecurity.Auth;

Data present in request.authentication AUTH_SES_ID refers to the session id with the data of the user that was logged in through Mandarine's built-in authentication AUTH_EXPIRES refers to the time when the session will expire AUTH_PRINCIPAL refers to all the data that was loaded (following the UserDetails implementation)

Properties

AUTH_SES_ID: string
AUTH_EXPIRES: Date
AUTH_PRINCIPAL: any