diff --git a/src/ScalarAuthClient.js b/src/ScalarAuthClient.js index 65d033f97b..4aafd447b1 100644 --- a/src/ScalarAuthClient.js +++ b/src/ScalarAuthClient.js @@ -59,7 +59,11 @@ class ScalarAuthClient { if (!token) { return this.registerForToken(); } else { - return this._checkToken(token).catch(() => { + return this._checkToken(token).catch((e) => { + if (e instanceof TermsNotSignedError) { + // retrying won't help this + throw e; + } return this.registerForToken(); }); }