Skip to content

Commit b175541

Browse files
change documentation
1 parent caacce1 commit b175541

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ To allow your web app to retrieve keys:
77
1. Install the package
88
`npm i @toruslabs/torus-direct-web-sdk`
99

10-
2. Serve [service worker](public/sw.js) from `baseUrl` where baseUrl is the one passed while instantiating `TorusSdk` for specific login (example http://localhost:3000/). If you're already using a sw, pls ensure to port over the fetch override from [our service worker](public/sw.js)
10+
2. Serve [service worker](public/sw.js) from `baseUrl` where baseUrl is the one passed while instantiating `TorusSdk` for specific login (example http://localhost:3000/serviceworker/). If you're already using a sw, pls ensure to port over the fetch override from [our service worker](public/sw.js)
1111

12-
3. For browsers where service workers are not supported or if you wish to not use service workers, create and serve [redirect page](public/redirect.html) from `baseUrl/serviceworker/redirect` where baseUrl is the one passed while instantiating `TorusSdk` for specific login ( example http://localhost:3000/)
12+
3. For browsers where service workers are not supported or if you wish to not use service workers, create and serve [redirect page](public/redirect.html) from `baseUrl/redirect` where baseUrl is the one passed while instantiating `TorusSdk` for specific login ( example http://localhost:3000/serviceworker/)
1313

14-
4. At verifier's interface (where you obtain client id), please use `baseUrl/serviceworker/redirect` (eg: http://localhost:3000/serviceworker/redirect) as the redirect_uri where baseUrl is the one passed while instantiating `TorusSdk`
14+
4. At verifier's interface (where you obtain client id), please use `baseUrl/redirect` (eg: http://localhost:3000/serviceworker/redirect) as the redirect_uri where baseUrl is the one passed while instantiating `TorusSdk`
1515

1616
5. Instantiate the package with your own specific client-id
1717

1818
```js
1919
const torus = new TorusSdk({
20-
baseUrl: "http://localhost:3000",
20+
baseUrl: "http://localhost:3000/serviceworker/",
2121
GOOGLE_CLIENT_ID: "MY CLIENT ID GOOGLE",
2222
proxyContractAddress: "0x4023d2a0D330bF11426B12C6144Cfb96B7fa6183", // details for test net
2323
network: "ropsten", // details for test net

0 commit comments

Comments
 (0)