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/cjs/index.js
CHANGED
|
@@ -16005,8 +16005,8 @@ var Auth = /** @class */ (function () {
|
|
|
16005
16005
|
*
|
|
16006
16006
|
* @returns promise
|
|
16007
16007
|
*/
|
|
16008
|
-
Auth.oneTimeLogin = function () {
|
|
16009
|
-
return Requests.processRoute(AuthRoutes.routes.one_time_login, {});
|
|
16008
|
+
Auth.oneTimeLogin = function (token) {
|
|
16009
|
+
return Requests.processRoute(AuthRoutes.routes.one_time_login, { token: token });
|
|
16010
16010
|
};
|
|
16011
16011
|
/**
|
|
16012
16012
|
* Execute the password reset process using a user's email address.
|
|
@@ -18211,12 +18211,14 @@ var Session = /** @class */ (function () {
|
|
|
18211
18211
|
Storage.set(Session._first_name_key, null);
|
|
18212
18212
|
Storage.set(Session._last_name_key, null);
|
|
18213
18213
|
Storage.set(Session._email_key, null);
|
|
18214
|
+
Storage.set(Session._username_key, null);
|
|
18214
18215
|
};
|
|
18215
18216
|
Session.processAuthentication = function (data) {
|
|
18216
18217
|
Storage.setAuthToken(data.token.access_token);
|
|
18217
18218
|
Storage.set(Session._id_key, data.id);
|
|
18218
18219
|
Storage.set(Session._first_name_key, data.first_name);
|
|
18219
18220
|
Storage.set(Session._last_name_key, data.last_name);
|
|
18221
|
+
Storage.set(Session._username_key, data.username);
|
|
18220
18222
|
Storage.set(Session._email_key, data.email);
|
|
18221
18223
|
Config.setAuthToken(data.token.access_token);
|
|
18222
18224
|
};
|