UNPKG

react-native-gigya-sdk

Version:
22 lines (21 loc) 897 B
import getState from './getState'; import sendApiCall from './sendApiCall'; export default function (options) { return new Promise(async (resolve, reject) => { try { var _state$regToken; const state = await getState(); await sendApiCall('accounts.resendVerificationCode', { ...((options === null || options === void 0 ? void 0 : options.noUID) && { regToken: (options === null || options === void 0 ? void 0 : options.regToken) || ((_state$regToken = state.regToken) === null || _state$regToken === void 0 ? void 0 : _state$regToken.value) }), ...(!(options !== null && options !== void 0 && options.noUID) && { UID: (options === null || options === void 0 ? void 0 : options.UID) || state.UID }) }); resolve(true); } catch (e) { reject(e); } }); } //# sourceMappingURL=resendVerificationEmail.js.map