@arc-publishing/sdk-identity
Version:
JS Identity SDK for working with Identity API
19 lines • 576 B
JavaScript
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