From 9454c0753f8c50f68c8d70724e73b6869f6ad7ab Mon Sep 17 00:00:00 2001 From: synw Date: Fri, 18 Sep 2020 15:50:48 +0200 Subject: [PATCH] Update readme --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 108c214..38966c2 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,15 @@ 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 quidjs@0.2.0 +``` + ## Usage ```javascript +import QuidRequests from "quidjs"; + var requests = new QuidRequests({ namespace: "my_namespace", timeouts: { @@ -16,7 +22,7 @@ var requests = new QuidRequests({ refreshToken: "24h" }, axiosConfig: { - baseURL: "https://myquideserver.com", + baseURL: "https://myquideserver_uri_", // "http://localhost:8080" timeout: 5000 }, })