Skip to content

Commit

Permalink
Throw redirect to login instead of return null
Browse files Browse the repository at this point in the history
  • Loading branch information
gdl-drw committed Dec 10, 2024
1 parent a345c84 commit 703c573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebLibs/api/fluentAuthManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export function createAuthManager() {

if (!isTokenValid(this.token)) {
this.redirectToLogin();
return null;
throw "Redirect to login...";
}
return this;
},
Expand Down

0 comments on commit 703c573

Please sign in to comment.