You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,17 +7,17 @@ To allow your web app to retrieve keys:
7
7
1. Install the package
8
8
`npm i @toruslabs/torus-direct-web-sdk`
9
9
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)
11
11
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/)
13
13
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`
15
15
16
16
5. Instantiate the package with your own specific client-id
17
17
18
18
```js
19
19
consttorus=newTorusSdk({
20
-
baseUrl:"http://localhost:3000",
20
+
baseUrl:"http://localhost:3000/serviceworker/",
21
21
GOOGLE_CLIENT_ID:"MY CLIENT ID GOOGLE",
22
22
proxyContractAddress:"0x4023d2a0D330bF11426B12C6144Cfb96B7fa6183", // details for test net
0 commit comments