"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TOTPSecret = void 0; const Entity_1 = require("../../../../shared/domain/Entity"); const UniqueId_1 = require("../../../../shared/domain/UniqueId"); class TOTPSecret extends Entity_1.Entity { static create(props, id) { return new TOTPSecret(props, id ?? UniqueId_1.UniqueId.create()); } static reconstitute(props, id) { return new TOTPSecret(props, id); } get userId() { return this.props.userId; } get secret() { return this.props.secret; } get verified() { return this.props.verified; } get createdAt() { return this.props.createdAt; } verify() { this.props.verified = true; } } exports.TOTPSecret = TOTPSecret;