backk-frontend-utils
Advanced tools
Comparing version
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
41109
0.16%298
0.68%