@blocklet/sdk 1.16.8-beta-ca58a421 → 1.16.8-beta-0c0c5eb2

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.
@@ -7,7 +7,10 @@ declare class AuthService {
7
7
  constructor(httpEndpoint?: string);
8
8
  }
9
9
  interface AuthService {
10
- login: (params: object) => Promise<string>;
10
+ login: (params: object) => Promise<{
11
+ user: Object;
12
+ token: string;
13
+ }>;
11
14
  getUser(did: string, options?: {
12
15
  enableConnectedAccount?: boolean;
13
16
  enableNormalize?: boolean;
@@ -131,6 +131,9 @@ class AuthService {
131
131
  this.login = async (data) => {
132
132
  try {
133
133
  const { data: resData } = await service_api_1.default.post('/user/login', data);
134
+ if (resData?.user) {
135
+ fixAvatar(resData.user);
136
+ }
134
137
  return resData;
135
138
  }
136
139
  catch (err) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.8-beta-ca58a421",
6
+ "version": "1.16.8-beta-0c0c5eb2",
7
7
  "description": "graphql client to read/write data on abt node",
8
8
  "main": "lib/index.js",
9
9
  "typings": "lib/index.d.ts",
@@ -26,15 +26,15 @@
26
26
  "author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
- "@abtnode/client": "1.16.8-beta-ca58a421",
30
- "@abtnode/constant": "1.16.8-beta-ca58a421",
29
+ "@abtnode/client": "1.16.8-beta-0c0c5eb2",
30
+ "@abtnode/constant": "1.16.8-beta-0c0c5eb2",
31
31
  "@arcblock/did": "1.18.78",
32
32
  "@arcblock/did-auth": "1.18.78",
33
33
  "@arcblock/jwt": "1.18.78",
34
34
  "@arcblock/ws": "1.18.78",
35
- "@blocklet/constant": "1.16.8-beta-ca58a421",
36
- "@blocklet/env": "1.16.8-beta-ca58a421",
37
- "@blocklet/meta": "1.16.8-beta-ca58a421",
35
+ "@blocklet/constant": "1.16.8-beta-0c0c5eb2",
36
+ "@blocklet/env": "1.16.8-beta-0c0c5eb2",
37
+ "@blocklet/meta": "1.16.8-beta-0c0c5eb2",
38
38
  "@did-connect/authenticator": "^2.1.54",
39
39
  "@did-connect/handler": "^2.1.54",
40
40
  "@nedb/core": "^2.1.5",
@@ -72,5 +72,5 @@
72
72
  "ts-node": "^10.9.1",
73
73
  "typescript": "^4.8.4"
74
74
  },
75
- "gitHead": "d0f724c8082572a01b6e9287df6c3d0663ec9c57"
75
+ "gitHead": "0d8ec3154caf670770284dbdabc61a5f4e8b205f"
76
76
  }