UNPKG

nralcm

Version:

This is a framework based on NodeJs to manage rest api request lifecycle

19 lines (18 loc) 457 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * AuthPrinciple class */ class AuthPrinciple { constructor(userId, roles) { this._isAuthenticated = false; this.userId = userId; this.roles = roles; this._isAuthenticated = true; } // tslint:disable-next-line:typedef get isAuthenticated() { return this._isAuthenticated; } } exports.AuthPrinciple = AuthPrinciple;