Commit 47f24786 authored by Robert Knight's avatar Robert Knight

Ignore a rare error scenario

As noted in a comment, the check is mainly intended to prevent infinite
loops in tests.
parent c9765e9d
...@@ -241,6 +241,7 @@ export class AuthService extends TinyEmitter { ...@@ -241,6 +241,7 @@ export class AuthService extends TinyEmitter {
// Sanity check that prevents an infinite loop. Mostly useful in // Sanity check that prevents an infinite loop. Mostly useful in
// tests. // tests.
if (Date.now() > token.expiresAt) { if (Date.now() > token.expiresAt) {
/* istanbul ignore next */
throw new Error('Refreshed token expired in the past'); throw new Error('Refreshed token expired in the past');
} }
return token; return token;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment