backk-frontend-utils
Advanced tools
Comparing version
@@ -0,1 +1,2 @@ | ||
import { Base64 } from 'js-base64'; | ||
import getJwtFromSessionStorage from './getJwtFromSessionStorage'; | ||
@@ -8,3 +9,3 @@ export default async function callRemoteService(microserviceName, serviceFunctionName, serviceFunctionArgument, microserviceNamespace, jwtStorageEncryptionKey, options) { | ||
'Content-Type': 'application/json', | ||
Authorization: 'Bearer ' + getJwtFromSessionStorage(jwtStorageEncryptionKey) ?? '', | ||
Authorization: 'Bearer ' + Base64.encode(getJwtFromSessionStorage(jwtStorageEncryptionKey) ?? ''), | ||
}, | ||
@@ -11,0 +12,0 @@ }); |
{ | ||
"name": "backk-frontend-utils", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Web frontend utils for Backk microservices", | ||
@@ -43,3 +43,4 @@ "author": { | ||
"dependencies": { | ||
"crypto-js": "4.1.1" | ||
"crypto-js": "4.1.1", | ||
"js-base64": "3.7.2" | ||
}, | ||
@@ -46,0 +47,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
39946
0.69%265
0.38%1
-50%2
100%+ Added
+ Added