glitch-javascript-sdk 0.1.5 → 0.1.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Javascrip SDK for GLitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1,3 +1,4 @@
1
+ import { Config } from "../config";
1
2
  import Storage from "./Storage";
2
3
 
3
4
  class Session {
@@ -47,6 +48,8 @@ class Session {
47
48
  Storage.set(Session._first_name_key, data.first_name);
48
49
  Storage.set(Session._last_name_key, data.last_name);
49
50
  Storage.set(Session._email_key, data.email);
51
+
52
+ Config.setAuthToken(data.token.access_token);
50
53
  }
51
54
  }
52
55