UNPKG

lbx-jwt

Version:

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

29 lines 817 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Jwt = void 0; const tslib_1 = require("tslib"); const repository_1 = require("@loopback/repository"); /** * A Json Web Token, containing the token itself and its expiration date. */ let Jwt = class Jwt { }; exports.Jwt = Jwt; tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', required: true }), tslib_1.__metadata("design:type", String) ], Jwt.prototype, "value", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'date', required: true }), tslib_1.__metadata("design:type", Date) ], Jwt.prototype, "expirationDate", void 0); exports.Jwt = Jwt = tslib_1.__decorate([ (0, repository_1.model)() ], Jwt); //# sourceMappingURL=jwt.model.js.map