-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
synw
committed
Sep 18, 2020
1 parent
ce20e34
commit 9454c07
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
}, | ||
}) | ||
|