attlaz-client 1.9.42 → 1.9.44
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/Model/User.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UserEndpoint = void 0;
|
|
4
4
|
const UserAuthProvider_1 = require("../Model/User/UserAuthProvider");
|
|
5
|
+
const OAuthClientToken_1 = require("../Http/OAuthClientToken");
|
|
5
6
|
const Endpoint_1 = require("./Endpoint");
|
|
6
7
|
const User_1 = require("../Model/User");
|
|
7
8
|
const Utils_1 = require("../Utils");
|
|
@@ -14,8 +15,11 @@ class UserEndpoint extends Endpoint_1.Endpoint {
|
|
|
14
15
|
async authenticateByAuthProvider(providerType, data) {
|
|
15
16
|
try {
|
|
16
17
|
const parser = (raw) => {
|
|
17
|
-
|
|
18
|
-
const
|
|
18
|
+
const access_token = raw.access_token;
|
|
19
|
+
const token_type = raw.token_type;
|
|
20
|
+
const refresh_token = raw.refresh_token;
|
|
21
|
+
const scope = raw.scope;
|
|
22
|
+
const token = new OAuthClientToken_1.OAuthClientToken(access_token, token_type, refresh_token, scope);
|
|
19
23
|
token.expires = Utils_1.Utils.parseRawDate(raw.expires);
|
|
20
24
|
return token;
|
|
21
25
|
};
|