@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.
- package/jwt.js +4 -0
- 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
|
}
|