Skip to content

Commit

Permalink
docs: update docs for blocklet sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
linchen1987 committed Jun 28, 2023
1 parent 5f31413 commit 0c5ce9b
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.132 (June 28, 2023)

- docs: update docs for blocklet sdk

## 0.1.131 (June 09, 2023)

- fix
Expand Down
2 changes: 1 addition & 1 deletion developer/docs/blocklet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repository:
type: git
url: git+https://github.com/blocklet/blocklet-site.git
specVersion: 1.2.8
version: 0.1.131
version: 0.1.132
logo: logo.png
files:
- hooks/post-start.js
Expand Down
13 changes: 13 additions & 0 deletions developer/docs/pages/reference/blocklet-sdk/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,19 @@ Get all permissions of the app
- _@param_ **name** `string` the key of the permission
- _@return_ `{ code }`

### login

`client.login({ provider, did, pk, avatar, email, fullName, id, locale })`

- _@return_ `{ user, token, refreshToken }`

### refreshSession

`client.refreshSession({ refreshToken })`

- _@param_ **refreshToken** `string` the refresh token
- _@return_ `{ user, token, refreshToken }`

## Notification

```javascript
Expand Down
13 changes: 13 additions & 0 deletions developer/docs/pages/reference/blocklet-sdk/index.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,19 @@ Get all permissions of the app
- _@param_ **name** `string` the key of the permission
- _@return_ `{ code }`

### login

`client.login({ provider, did, pk, avatar, email, fullName, id, locale })`

- _@return_ `{ user, token, refreshToken }`

### refreshSession

`client.refreshSession({ refreshToken })`

- _@param_ **refreshToken** `string` the refresh token
- _@return_ `{ user, token, refreshToken }`

## Notification

```javascript
Expand Down
2 changes: 1 addition & 1 deletion developer/pages/blocklet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repository:
type: git
url: git+https://github.com/blocklet/blocklet-site.git
specVersion: 1.2.8
version: 0.1.131
version: 0.1.132
logo: logo.png
files: []
interfaces:
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.131
0.1.132
2 changes: 1 addition & 1 deletion website/docs/blocklet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repository:
type: git
url: git+https://github.com/blocklet/blocklet-site.git
specVersion: 1.2.8
version: 0.1.131
version: 0.1.132
logo: logo.png
files: []
interfaces:
Expand Down
2 changes: 1 addition & 1 deletion website/pages/blocklet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repository:
type: git
url: git+https://github.com/blocklet/blocklet-site.git
specVersion: 1.2.8
version: 0.1.131
version: 0.1.132
logo: logo.png
files: []
interfaces:
Expand Down

0 comments on commit 0c5ce9b

Please sign in to comment.