openid-client 5.4.2 → 5.4.3

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.
@@ -81,7 +81,7 @@ async function authFor(endpoint, { clientAssertionPayload } = {}) {
81
81
  case 'none':
82
82
  return { form: { client_id: this.client_id } };
83
83
  case 'client_secret_post':
84
- if (!this.client_secret) {
84
+ if (typeof this.client_secret !== 'string') {
85
85
  throw new TypeError(
86
86
  'client_secret_post client authentication method requires a client_secret',
87
87
  );
@@ -120,7 +120,7 @@ async function authFor(endpoint, { clientAssertionPayload } = {}) {
120
120
  // > Appendix B, and the encoded value is used as the username; the client
121
121
  // > password is encoded using the same algorithm and used as the
122
122
  // > password.
123
- if (!this.client_secret) {
123
+ if (typeof this.client_secret !== 'string') {
124
124
  throw new TypeError(
125
125
  'client_secret_basic client authentication method requires a client_secret',
126
126
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openid-client",
3
- "version": "5.4.2",
3
+ "version": "5.4.3",
4
4
  "description": "OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs",
5
5
  "keywords": [
6
6
  "auth",
@@ -45,19 +45,19 @@
45
45
  "test": "mocha test/**/*.test.js"
46
46
  },
47
47
  "dependencies": {
48
- "jose": "^4.14.1",
48
+ "jose": "^4.14.4",
49
49
  "lru-cache": "^6.0.0",
50
50
  "object-hash": "^2.2.0",
51
51
  "oidc-token-hash": "^5.0.3"
52
52
  },
53
53
  "devDependencies": {
54
- "@types/node": "^16.18.24",
54
+ "@types/node": "^16.18.31",
55
55
  "@types/passport": "^1.0.12",
56
56
  "base64url": "^3.0.1",
57
57
  "chai": "^4.3.7",
58
58
  "jose2": "npm:jose@^2.0.6",
59
59
  "mocha": "^10.2.0",
60
- "nock": "^13.3.0",
60
+ "nock": "^13.3.1",
61
61
  "prettier": "^2.8.8",
62
62
  "readable-mock-req": "^0.2.2",
63
63
  "sinon": "^9.2.4",