@osimatic/helpers-js 1.1.45 → 1.1.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/jwt.js +4 -0
  2. package/package.json +1 -1
package/jwt.js CHANGED
@@ -136,6 +136,10 @@ class JwtSession {
136
136
  return JwtToken.getData(JwtSession.getToken(), key);
137
137
  }
138
138
 
139
+ static setData(key, value) {
140
+ localStorage.setItem(key, value);
141
+ }
142
+
139
143
  static isAnonymous() {
140
144
  return localStorage.getItem('access_token') == null;
141
145
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osimatic/helpers-js",
3
- "version": "1.1.45",
3
+ "version": "1.1.47",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"