wallaby-cash 1.5.0 → 1.5.1

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.
package/dist/index.cjs.js CHANGED
@@ -6,12 +6,10 @@ const ethCryptoJs = require('eth-crypto-js');
6
6
  const axios = require('axios');
7
7
  const cryptoJs = require('crypto-js');
8
8
  const uuid = require('uuid');
9
- const jwt = require('jsonwebtoken');
10
9
 
11
10
  const _interopDefaultCompat = e => e && typeof e === 'object' && 'default' in e ? e : { default: e };
12
11
 
13
12
  const axios__default = /*#__PURE__*/_interopDefaultCompat(axios);
14
- const jwt__default = /*#__PURE__*/_interopDefaultCompat(jwt);
15
13
 
16
14
  /******************************************************************************
17
15
  Copyright (c) Microsoft Corporation.
@@ -6310,6 +6308,7 @@ var Wallet = /** @class */ (function (_super) {
6310
6308
  return Wallet;
6311
6309
  }(Base));
6312
6310
 
6311
+ // import jwt, { SignOptions } from 'jsonwebtoken';
6313
6312
  var Utils = /** @class */ (function (_super) {
6314
6313
  __extends(Utils, _super);
6315
6314
  function Utils(config) {
@@ -6497,26 +6496,6 @@ var Utils = /** @class */ (function (_super) {
6497
6496
  });
6498
6497
  });
6499
6498
  };
6500
- /**
6501
- * Generates a JWT token for a client using the RS256 algorithm.
6502
- *
6503
- * @param {string} externalUserId - The external user ID to be included in the JWT payload. (Must be a UUID)
6504
- * @param {string} jwtSigningKey - The RS256 private key used for signing the JWT.
6505
- * @param {string} expiresIn - The duration for which the token is valid.
6506
- * If not provided, the token will be valid indefinitely.
6507
- * @returns {string} The generated JWT token.
6508
- */
6509
- Utils.prototype.generateClientJwtToken = function (_a) {
6510
- var externalUserId = _a.externalUserId, jwtSigningKey = _a.jwtSigningKey, expiresIn = _a.expiresIn;
6511
- var options = {
6512
- algorithm: 'RS256',
6513
- };
6514
- if (expiresIn) {
6515
- options.expiresIn = expiresIn;
6516
- }
6517
- var jwtToken = jwt__default.default.sign({ sub: externalUserId, externalUserId: externalUserId }, jwtSigningKey, options);
6518
- return jwtToken;
6519
- };
6520
6499
  return Utils;
6521
6500
  }(Base));
6522
6501