Comparing version 0.44.0 to 0.44.1
@@ -16,2 +16,3 @@ import { AxiosError, Method } from 'axios' | ||
authHashLogin(username: string, authhash: string): Promise<IUser> | ||
sessionExpired(username: string): Promise<boolean> | ||
userData(username: string): Promise<IUser> | ||
@@ -18,0 +19,0 @@ language: { |
@@ -149,2 +149,12 @@ "use strict"; | ||
}, | ||
sessionExpired: function (username) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, r3 | ||
.get("/user/token/" + r3.token) | ||
.then(function (resp) { return resp.userid !== username; }) | ||
.catch(function () { return true; })]; | ||
}); | ||
}); | ||
}, | ||
userData: function (username) { | ||
@@ -151,0 +161,0 @@ return __awaiter(this, void 0, void 0, function () { |
{ | ||
"name": "remote.it", | ||
"version": "0.44.0", | ||
"version": "0.44.1", | ||
"description": "remote.it JavaScript/node client library", | ||
@@ -5,0 +5,0 @@ "main": "lib/remote.it.js", |
@@ -69,2 +69,8 @@ import axios, { AxiosError, AxiosResponse, Method } from 'axios' | ||
}, | ||
async sessionExpired(username: string): Promise<boolean> { | ||
return r3 | ||
.get(`/user/token/${r3.token}`) | ||
.then(resp => resp.userid !== username) | ||
.catch(() => true) | ||
}, | ||
async userData(username: string): Promise<IUser> { | ||
@@ -71,0 +77,0 @@ return r3 |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
179140
4094