whio-api-sdk 1.0.224-beta-staging → 1.0.225-beta-staging
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.
|
@@ -37,6 +37,7 @@ export class AuthModule extends BaseClient {
|
|
|
37
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
38
|
try {
|
|
39
39
|
const response = yield this.request('/auth/login-with-code', 'POST', { email, code }, {}, true);
|
|
40
|
+
console.log(response);
|
|
40
41
|
this.accessToken = response.access_token;
|
|
41
42
|
this.refreshToken = response.refresh_token;
|
|
42
43
|
this.user = response.user;
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ export class AuthModule extends BaseClient {
|
|
|
19
19
|
await this.storage!.setItem('access_token', JSON.stringify(response.access_token));
|
|
20
20
|
await this.storage!.setItem('refresh_token', JSON.stringify(response.refresh_token));
|
|
21
21
|
await this.storage!.setItem('user', JSON.stringify(response.user));
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
return response;
|
|
24
24
|
} catch (error) {
|
|
25
25
|
await this.clearAuth();
|
|
@@ -46,6 +46,7 @@ export class AuthModule extends BaseClient {
|
|
|
46
46
|
{},
|
|
47
47
|
true
|
|
48
48
|
);
|
|
49
|
+
console.log(response);
|
|
49
50
|
this.accessToken = response.access_token;
|
|
50
51
|
this.refreshToken = response.refresh_token;
|
|
51
52
|
this.user = response.user;
|