Skip to content

Commit 56e3fe3

Browse files
Adds docs for web3auth (#1060)
1 parent 3de3593 commit 56e3fe3

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

packages/demo/src/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
})
7373
7474
const web3auth = web3authModule({
75-
clientId: 'BJuUOKvmNnlzy6ruVgeWYWIMKLRyYtjYa9Y10VCeJzWZcygDlrYLyXsBQjpJ2hxlBO9dnl8t9GmAC2rOP5vnIGo'
75+
clientId: 'DJuUOKvmNnlzy6ruVgeWYWIMKLRyYtjYa9Y10VCeJzWZcygDlrYLyXsBQjpJ2hxlBO9dnl8t9GmAC2qOP5vnIGo'
7676
})
7777
7878
const torus = torusModule()

packages/web3auth/README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# @web3-onboard/web3auth
2+
3+
## Wallet module for connecting Web3auth to web3-onboard
4+
5+
### Install
6+
7+
`npm i @web3-onboard/web3auth`
8+
9+
## Options
10+
11+
See the [Web3auth Docs](https://docs.web3auth.io/api-reference/web/plugnplay) for the extensive list of options.
12+
13+
## Usage
14+
15+
```typescript
16+
import Onboard from '@web3-onboard/core'
17+
import web3authModule from '@web3-onboard/web3auth'
18+
19+
const web3auth = web3authModule({
20+
clientId:
21+
'DJuUOKvmNnlzy6ruVgeWYWIMKLRyYtjYa9Y10VCeJzWZcygDlrYLyXsBQjpJ2hxlBO9dnl8t9GmAC2qOP5vnIGo'
22+
})
23+
24+
const onboard = Onboard({
25+
// ... other Onboard options
26+
wallets: [
27+
web3auth
28+
//... other wallets
29+
]
30+
})
31+
32+
const connectedWallets = await onboard.connectWallet()
33+
console.log(connectedWallets)
34+
```

0 commit comments

Comments
 (0)