UNPKG

@ords/core

Version:

Microservice architecture with service proposals in nodejs and typescript

34 lines (33 loc) 976 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /* * Authentication in a application * root: auth */ var auth; (function (auth) { /** * Flags used in module to explain interactions */ var flag; (function (flag) { /** * Error codes in module */ var error; (function (error) { /** * User was not found when a login was attempted */ error.NO_USER_FOUND = 'No user was found'; /** * User allready exists when one was trying to be created */ error.USER_EXISTS = 'User already exists'; /** * No valid auth information provided */ error.NO_VALID_AUTH = 'The auth information is not valid'; })(error = flag.error || (flag.error = {})); })(flag = auth.flag || (auth.flag = {})); })(auth = exports.auth || (exports.auth = {}));