UNPKG

lbx-jwt

Version:

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

32 lines 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConfirmResetPassword = void 0; const tslib_1 = require("tslib"); const repository_1 = require("@loopback/repository"); /** * The type of the request used for resetting a password. */ let ConfirmResetPassword = class ConfirmResetPassword extends repository_1.Model { }; exports.ConfirmResetPassword = ConfirmResetPassword; tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', required: true }), tslib_1.__metadata("design:type", String) ], ConfirmResetPassword.prototype, "resetToken", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', required: true, jsonSchema: { minLength: 12 } }), tslib_1.__metadata("design:type", String) ], ConfirmResetPassword.prototype, "password", void 0); exports.ConfirmResetPassword = ConfirmResetPassword = tslib_1.__decorate([ (0, repository_1.model)() ], ConfirmResetPassword); //# sourceMappingURL=confirm-reset-password.model.js.map