@denodeio/seshat 0.0.28 → 0.0.29

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.
@@ -26,7 +26,7 @@ type JwtPayload<T> = {
26
26
  };
27
27
  export * from "./signer";
28
28
  type OptionsInput = {
29
- sessionName?: string;
29
+ fieldName?: string;
30
30
  barongJwtPublicKey?: string;
31
31
  issuer?: string;
32
32
  };
@@ -40,7 +40,7 @@ type JwtPayload<T> = {
40
40
  };
41
41
 
42
42
  type OptionsInput = {
43
- sessionName?: string;
43
+ fieldName?: string;
44
44
  barongJwtPublicKey?: string;
45
45
  issuer?: string;
46
46
  };
@@ -6544,7 +6544,7 @@ signer.signData = signData;
6544
6544
  const signer_1 = signer;
6545
6545
  __exportStar(signer, exports);
6546
6546
  const sessionVerifier = function (options) {
6547
- const { sessionName = "session", ...actualOptions } = options;
6547
+ const { fieldName = "session", ...actualOptions } = options;
6548
6548
  if (!options || !options.barongJwtPublicKey) {
6549
6549
  throw new Error("Barong JWT Public key should be set");
6550
6550
  }
@@ -6565,7 +6565,7 @@ signer.signData = signData;
6565
6565
  return;
6566
6566
  }
6567
6567
  try {
6568
- req[sessionName] = jsonwebtoken_1.default.verify(authHeader, barongJwtPublicKey, verificationOptions);
6568
+ req[fieldName] = jsonwebtoken_1.default.verify(authHeader, barongJwtPublicKey, verificationOptions);
6569
6569
  }
6570
6570
  catch (error) {
6571
6571
  res.status(403);