glitch-javascript-sdk 0.3.7 → 0.3.8

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.
@@ -40,7 +40,7 @@ declare class Auth {
40
40
  *
41
41
  * @returns promise
42
42
  */
43
- static oneTimeLogin<T>(): AxiosPromise<Response<T>>;
43
+ static oneTimeLogin<T>(token: string): AxiosPromise<Response<T>>;
44
44
  /**
45
45
  * Execute the password reset process using a user's email address.
46
46
  *
package/dist/esm/index.js CHANGED
@@ -30227,8 +30227,8 @@ var Auth = /** @class */ (function () {
30227
30227
  *
30228
30228
  * @returns promise
30229
30229
  */
30230
- Auth.oneTimeLogin = function () {
30231
- return Requests.processRoute(AuthRoutes.routes.one_time_login, {});
30230
+ Auth.oneTimeLogin = function (token) {
30231
+ return Requests.processRoute(AuthRoutes.routes.one_time_login, { token: token });
30232
30232
  };
30233
30233
  /**
30234
30234
  * Execute the password reset process using a user's email address.
@@ -32433,12 +32433,14 @@ var Session = /** @class */ (function () {
32433
32433
  Storage.set(Session._first_name_key, null);
32434
32434
  Storage.set(Session._last_name_key, null);
32435
32435
  Storage.set(Session._email_key, null);
32436
+ Storage.set(Session._username_key, null);
32436
32437
  };
32437
32438
  Session.processAuthentication = function (data) {
32438
32439
  Storage.setAuthToken(data.token.access_token);
32439
32440
  Storage.set(Session._id_key, data.id);
32440
32441
  Storage.set(Session._first_name_key, data.first_name);
32441
32442
  Storage.set(Session._last_name_key, data.last_name);
32443
+ Storage.set(Session._username_key, data.username);
32442
32444
  Storage.set(Session._email_key, data.email);
32443
32445
  Config.setAuthToken(data.token.access_token);
32444
32446
  };