UNPKG

@arc-publishing/sdk-identity

Version:
19 lines 576 B
import JSONResponseHandler from '../serviceHelpers/JSONResponseHandler'; import Identity from './identity'; import { headers } from './constants'; export default function verifyEmail(nonce) { return fetch("".concat(Identity.apiOrigin, "/identity/public/v1/email/verify/").concat(nonce), { method: 'GET', headers: headers }) .then(JSONResponseHandler) .then(function (json) { if (json.success) { return true; } else { throw json; } }); } //# sourceMappingURL=verifyEmail.js.map