Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
synw committed Sep 18, 2020
1 parent ce20e34 commit 9454c07
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,23 @@ This library transparently manage the requests to api servers. If a server retur
when an access token is expired the client library will request a new access token from a Quid server, using a refresh
token, and will retry the request with the new access token

```bash
npm install [email protected]
```

## Usage

```javascript
import QuidRequests from "quidjs";

var requests = new QuidRequests({
namespace: "my_namespace",
timeouts: {
accessToken: "5m",
refreshToken: "24h"
},
axiosConfig: {
baseURL: "https://myquideserver.com",
baseURL: "https://myquideserver_uri_", // "http://localhost:8080"
timeout: 5000
},
})
Expand Down

0 comments on commit 9454c07

Please sign in to comment.