@camstack/core 0.1.34 → 0.1.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6237,7 +6237,8 @@ var AuthManager = class {
6237
6237
  isAdmin: payload.isAdmin,
6238
6238
  provider: payload.provider,
6239
6239
  ...payload.email !== void 0 ? { email: payload.email } : {},
6240
- ...payload.displayName !== void 0 ? { displayName: payload.displayName } : {}
6240
+ ...payload.displayName !== void 0 ? { displayName: payload.displayName } : {},
6241
+ ...payload.hubUrl !== void 0 ? { hubUrl: payload.hubUrl } : {}
6241
6242
  };
6242
6243
  return import_jsonwebtoken.sign(body, this.jwtSecret, { expiresIn: ttlSec });
6243
6244
  }
@@ -6258,13 +6259,15 @@ var AuthManager = class {
6258
6259
  if (typeof userId !== "string" || typeof username !== "string" || typeof isAdmin !== "boolean" || typeof provider !== "string") return null;
6259
6260
  const email = typeof decoded["email"] === "string" ? decoded["email"] : void 0;
6260
6261
  const displayName = typeof decoded["displayName"] === "string" ? decoded["displayName"] : void 0;
6262
+ const hubUrl = typeof decoded["hubUrl"] === "string" ? decoded["hubUrl"] : void 0;
6261
6263
  return {
6262
6264
  userId,
6263
6265
  username,
6264
6266
  isAdmin,
6265
6267
  provider,
6266
6268
  ...email !== void 0 ? { email } : {},
6267
- ...displayName !== void 0 ? { displayName } : {}
6269
+ ...displayName !== void 0 ? { displayName } : {},
6270
+ ...hubUrl !== void 0 ? { hubUrl } : {}
6268
6271
  };
6269
6272
  } catch {
6270
6273
  return null;