UNPKG

gigya-node

Version:
50 lines 2.52 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TFABackupCodes = void 0; __exportStar(require("./interfaces/gigya-response"), exports); __exportStar(require("./interfaces/base-params"), exports); __exportStar(require("./interfaces/tfa"), exports); var TFABackupCodes = /** @class */ (function () { function TFABackupCodes(gigya) { this.gigya = gigya; } /** * This method is part of a two-factor authentication (TFA) flow and is used to generate backup codes for use in a time-based authentication flow. * Note that TFA is part of Risk Based Authentication (RBA). * * @see https://help.sap.com/docs/SAP_CUSTOMER_DATA_CLOUD/8b8d6fffe113457094a17701f63e3d6a/413abafd70b21014bbc5a10ce4041860.html */ TFABackupCodes.prototype.create = function (params, options) { return this.gigya.request('accounts.tfa.backupcodes.create', params, options); }; /** * This method is part of a two-factor authentication (TFA) flow and is used to retrieve backup codes saved for a user in a time-based authentication flow. * * @see https://help.sap.com/docs/SAP_CUSTOMER_DATA_CLOUD/8b8d6fffe113457094a17701f63e3d6a/413ace4a70b21014bbc5a10ce4041860.html */ TFABackupCodes.prototype.get = function (params, options) { return this.gigya.request('accounts.tfa.backupcodes.get', params, options); }; /** * This method is part of a two-factor authentication (TFA) flow and is used to retrieve backup codes saved for a user in a time-based authentication flow. * * @see https://help.sap.com/docs/SAP_CUSTOMER_DATA_CLOUD/8b8d6fffe113457094a17701f63e3d6a/413ace4a70b21014bbc5a10ce4041860.html */ TFABackupCodes.prototype.verify = function (params, options) { return this.gigya.request('accounts.tfa.backupcodes.verify', params, options); }; return TFABackupCodes; }()); exports.TFABackupCodes = TFABackupCodes; exports.default = TFABackupCodes; //# sourceMappingURL=tfa.backupcodes.js.map