@shapediver/sdk.geometry-api-sdk-core
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -42,4 +42,9 @@ "use strict"; | ||
}; | ||
// Add jwt if provided | ||
if (this.config.jwt) { | ||
// Process HTTP authorization | ||
if (headers.authorization === "disabled") { | ||
delete request.headers["Authorization"]; | ||
delete request.headers["authorization"]; // config.headers might use lower case | ||
} | ||
else if (this.config.jwt) { | ||
// Add jwt if provided | ||
request.headers["Authorization"] = "Bearer " + this.config.jwt; | ||
@@ -46,0 +51,0 @@ } |
{ | ||
"name": "@shapediver/sdk.geometry-api-sdk-core", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Core-library for SDK-packages to communicate with the Geometry API", | ||
@@ -41,3 +41,3 @@ "keywords": [], | ||
"devDependencies": { | ||
"jest": "^27.4.5", | ||
"jest": "^27.4.7", | ||
"lerna": "3.22.1", | ||
@@ -44,0 +44,0 @@ "typescript": "^4.5.4" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
38265
544