decord/source/stores/MFAStore.tsx

81 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 13353
// Function ID: 13354
2026-07-29 08:29:29 +00:00
// Name: getVerificationKey
// Dependencies: [707, 12, 589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
// Module 13353 (getVerificationKey)
import applyDefault from "apply" /* 12 */;
import initializeDefault from "initialize" /* 589 */;
import setSecondaryTokenAll from "setSecondaryToken" /* 707 */;
import dispatcherDefault from "dispatcher" /* 709 */;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let c3 = false;
let closure_4 = [];
let c5 = "";
let c6 = false;
let closure_7 = { viewNonce: "", regenerateNonce: "" };
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class MFAStore extends Store {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = MFAStore.prototype;
prototype["getVerificationKey"] = function getVerificationKey() {
return c5;
};
prototype["getBackupCodes"] = function getBackupCodes() {
return closure_4;
};
Object.defineProperty(prototype, "togglingSMS", {
get: function togglingSMS() {
return c3;
},
set: undefined
});
prototype["getNonces"] = function getNonces() {
return closure_7;
};
Object.defineProperty(prototype, "hasSeenBackupPrompt", {
get: function hasSeenBackupPrompt() {
return c6;
},
set: undefined
});
MFAStore.displayName = "MFAStore";
2026-08-24 06:08:38 +00:00
const mFAStore = new MFAStore(dispatcherDefault, {
2026-07-20 16:05:17 +00:00
MFA_ENABLE_SUCCESS: function handleEnableSuccess(token) {
token = token.token;
if (undefined !== token) {
2026-08-24 06:08:38 +00:00
setSecondaryTokenAll.setToken(token);
const obj = setSecondaryTokenAll;
2026-07-20 16:05:17 +00:00
}
const codes = token.codes;
},
MFA_DISABLE_SUCCESS: function handleDisableSuccess(token) {
2026-08-24 06:08:38 +00:00
setSecondaryTokenAll.setToken(token.token);
2026-07-20 16:05:17 +00:00
},
MFA_SMS_TOGGLE: function handleSMSToggle() {
2026-08-24 06:08:38 +00:00
c3 = true;
2026-07-20 16:05:17 +00:00
},
MFA_SMS_TOGGLE_COMPLETE: function handleSMSToggleComplete() {
2026-08-24 06:08:38 +00:00
c3 = false;
2026-07-20 16:05:17 +00:00
},
MFA_CLEAR_BACKUP_CODES: function handleClearBackupCodes() {
2026-08-24 06:08:38 +00:00
closure_4 = [];
2026-07-20 16:05:17 +00:00
},
MFA_VIEW_BACKUP_CODES: function handleGetBackupCodes(arg0) {
({ codes, key } = arg0);
2026-08-24 06:08:38 +00:00
closure_4 = applyDefault.sortBy(codes, "code");
2026-07-20 16:05:17 +00:00
},
MFA_SEND_VERIFICATION_KEY: function handleSendVerificationEmail(nonces) {
nonces = nonces.nonces;
},
MFA_SEEN_BACKUP_CODE_PROMPT: function handleSeenBackupPrompt() {
2026-08-24 06:08:38 +00:00
c6 = true;
2026-07-20 16:05:17 +00:00
},
CONNECTION_OPEN() {
}
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("stores/MFAStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default mFAStore;