mirror of
https://github.com/bitwarden/jslib
synced 2025-12-27 21:53:14 +00:00
e8970725be472386358c1e2f06f53663c4979e0e
Not having access to the last active user was creating issues across clients when restarting the process. For example: when refreshing the page on web we no longer maintain an understanding of who is logged in. To resolve this I converted all storage save operations to get and save an entire state object, instead of specifying accounts and globals. This allows for more flexible saving, like saving activeUserId as a top level storage item.
Bitwarden JavaScript Library
Common code referenced across Bitwarden JavaScript projects.
Requirements
- Node.js v14.17 or greater
- NPM v7
- Git
- node-gyp
Windows
- Microsoft Build Tools 2015 in Visual Studio Installer
- Windows 10 SDK 17134 either by downloading it seperately or through the Visual Studio Installer.
Description
Languages
TypeScript
98.5%
SCSS
0.8%
JavaScript
0.3%
HTML
0.2%
CSS
0.2%