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.
- package/dist/cjs/index.js +4 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Auth.d.ts +1 -1
- package/dist/esm/index.js +4 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/util/Session.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
- package/src/api/Auth.ts +2 -2
- package/src/util/Session.ts +3 -1
package/dist/esm/api/Auth.d.ts
CHANGED
|
@@ -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
|
};
|