Skip to content

Commit 9454c07

Browse files
author
synw
committed
Update readme
1 parent ce20e34 commit 9454c07

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,23 @@ This library transparently manage the requests to api servers. If a server retur
66
when an access token is expired the client library will request a new access token from a Quid server, using a refresh
77
token, and will retry the request with the new access token
88

9+
```bash
10+
npm install quidjs@0.2.0
11+
```
12+
913
## Usage
1014

1115
```javascript
16+
import QuidRequests from "quidjs";
17+
1218
var requests = new QuidRequests({
1319
namespace: "my_namespace",
1420
timeouts: {
1521
accessToken: "5m",
1622
refreshToken: "24h"
1723
},
1824
axiosConfig: {
19-
baseURL: "https://myquideserver.com",
25+
baseURL: "https://myquideserver_uri_", // "http://localhost:8080"
2026
timeout: 5000
2127
},
2228
})

0 commit comments

Comments
 (0)