UNPKG

lbx-jwt

Version:

Provides JWT authentication for loopback applications. Includes storing roles inside tokens and handling refreshing. Built-in reuse detection.

35 lines 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LoginCredentials = void 0; const tslib_1 = require("tslib"); const repository_1 = require("@loopback/repository"); /** * The Credentials used in the login. */ let LoginCredentials = class LoginCredentials extends repository_1.Model { }; exports.LoginCredentials = LoginCredentials; tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', required: true, jsonSchema: { format: 'email' } }), tslib_1.__metadata("design:type", String) ], LoginCredentials.prototype, "email", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', required: true, jsonSchema: { minLength: 12 } }), tslib_1.__metadata("design:type", String) ], LoginCredentials.prototype, "password", void 0); exports.LoginCredentials = LoginCredentials = tslib_1.__decorate([ (0, repository_1.model)() ], LoginCredentials); //# sourceMappingURL=login-credentials.model.js.map