diff --git a/WebLibs/api/fluentAuthManager.js b/WebLibs/api/fluentAuthManager.js index ef29a9c1..715b9bcd 100644 --- a/WebLibs/api/fluentAuthManager.js +++ b/WebLibs/api/fluentAuthManager.js @@ -159,7 +159,7 @@ export function createAuthManager() { if (!isTokenValid(this.token)) { this.redirectToLogin(); - return null; + throw "Redirect to login..."; } return this; },