New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

backk-frontend-utils

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backk-frontend-utils - npm Package Compare versions

Comparing version

to
1.0.11

4

lib/getJwtFromSessionStorage.js
import AES from 'crypto-js/aes';
export default function getJwtFromSessionStorage(jwtStorageEncryptionKey) {
const encryptedJwt = sessionStorage.getItem('jwt');
return encryptedJwt ? AES.decrypt(encryptedJwt, jwtStorageEncryptionKey).toString() : undefined;
return encryptedJwt
? AES.decrypt(encryptedJwt, jwtStorageEncryptionKey).toString(CryptoJS.enc.Utf8)
: undefined;
}
//# sourceMappingURL=getJwtFromSessionStorage.js.map
{
"name": "backk-frontend-utils",
"version": "1.0.10",
"version": "1.0.11",
"description": "Web frontend utils for Backk microservices",

@@ -5,0 +5,0 @@ "author": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet