@knowlearning/agents 0.7.1 → 0.7.2

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.
@@ -14,7 +14,10 @@ function logout() {
14
14
  }
15
15
 
16
16
  async function getToken() {
17
- return localStorage.getItem('token')
17
+ // Browser tokens are 1 time use
18
+ const token = localStorage.getItem('token')
19
+ localStorage.removeItem('token')
20
+ return token
18
21
  }
19
22
 
20
23
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowlearning/agents",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "API for embedding applications in KnowLearning systems.",
5
5
  "main": "node.js",
6
6
  "browser": "browser.js",