+ public auth(throwErr = false): string | undefined {
+ const jwt = this.jwtInfo?.jwt;
+
+ if (jwt) {
+ return jwt;
+ } else {
+ const msg = "No JWT cookie found";
+
+ if (throwErr && isBrowser()) {
+ console.error(msg);
+ toast(I18NextService.i18n.t("not_logged_in"), "danger");
+ }
+
+ return undefined;
+ // throw msg;
+ }