lbx-jwt
Version:
Provides JWT authentication for loopback applications. Includes storing roles inside tokens and handling refreshing. Built-in reuse detection.
60 lines • 2.24 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AuthenticatorAttestationResponse = void 0;
const tslib_1 = require("tslib");
//TODO: Remove
/* eslint-disable jsdoc/require-jsdoc */
const repository_1 = require("@loopback/repository");
const webauthn_utilities_1 = require("../../../encapsulation/webauthn.utilities");
let AuthenticatorAttestationResponse = class AuthenticatorAttestationResponse {
};
exports.AuthenticatorAttestationResponse = AuthenticatorAttestationResponse;
tslib_1.__decorate([
(0, repository_1.property)({
type: 'string',
required: true
}),
tslib_1.__metadata("design:type", String)
], AuthenticatorAttestationResponse.prototype, "clientDataJSON", void 0);
tslib_1.__decorate([
(0, repository_1.property)({
type: 'string',
required: true
}),
tslib_1.__metadata("design:type", String)
], AuthenticatorAttestationResponse.prototype, "attestationObject", void 0);
tslib_1.__decorate([
(0, repository_1.property)({
type: 'string',
required: false
}),
tslib_1.__metadata("design:type", String)
], AuthenticatorAttestationResponse.prototype, "authenticatorData", void 0);
tslib_1.__decorate([
(0, repository_1.property)({
itemType: 'string',
required: false,
jsonSchema: {
enum: webauthn_utilities_1.authenticatorTransportFutureValues
}
}),
tslib_1.__metadata("design:type", Array)
], AuthenticatorAttestationResponse.prototype, "transports", void 0);
tslib_1.__decorate([
(0, repository_1.property)({
type: 'number',
required: false
}),
tslib_1.__metadata("design:type", Number)
], AuthenticatorAttestationResponse.prototype, "publicKeyAlgorithm", void 0);
tslib_1.__decorate([
(0, repository_1.property)({
type: 'string',
required: false
}),
tslib_1.__metadata("design:type", String)
], AuthenticatorAttestationResponse.prototype, "publicKey", void 0);
exports.AuthenticatorAttestationResponse = AuthenticatorAttestationResponse = tslib_1.__decorate([
(0, repository_1.model)()
], AuthenticatorAttestationResponse);
//# sourceMappingURL=authenticator-attestation-response.model.js.map