openid-client
Advanced tools
Comparing version 5.1.5 to 5.1.6
@@ -64,7 +64,6 @@ const { inspect } = require('util'); | ||
const response = await authenticatedPost.call( | ||
this.#client, | ||
'token', | ||
{ | ||
form: { | ||
let tokenset; | ||
try { | ||
tokenset = await this.#client.grant( | ||
{ | ||
...this.#exchangeBody, | ||
@@ -74,10 +73,4 @@ grant_type: 'urn:ietf:params:oauth:grant-type:device_code', | ||
}, | ||
responseType: 'json', | ||
}, | ||
{ clientAssertionPayload: this.#clientAssertionPayload, DPoP: this.#DPoP }, | ||
); | ||
let responseBody; | ||
try { | ||
responseBody = processResponse(response); | ||
{ clientAssertionPayload: this.#clientAssertionPayload, DPoP: this.#DPoP }, | ||
); | ||
} catch (err) { | ||
@@ -94,4 +87,2 @@ switch (err instanceof OPError && err.error) { | ||
const tokenset = new TokenSet(responseBody); | ||
if ('id_token' in tokenset) { | ||
@@ -98,0 +89,0 @@ await this.#client.decryptIdToken(tokenset); |
{ | ||
"name": "openid-client", | ||
"version": "5.1.5", | ||
"version": "5.1.6", | ||
"description": "OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs", | ||
@@ -33,7 +33,8 @@ "keywords": [ | ||
"exports": { | ||
"types": "./types/index.d.ts", | ||
"import": "./lib/index.mjs", | ||
"require": "./lib/index.js" | ||
}, | ||
"main": "lib/index.js", | ||
"types": "types/index.d.ts", | ||
"main": "./lib/index.js", | ||
"types": "./types/index.d.ts", | ||
"files": [ | ||
@@ -40,0 +41,0 @@ "lib", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
133638
3666