File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
docs/sdk/auth/pkp-native-auth Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,21 @@ description: "Externally Owned Account (EOA) authentication uses your existing E
4141Use the WalletClientAuthenticator/ViemAccountAuthenticator to authenticate your connected wallet and generate auth data.
4242
4343 <CodeGroup >
44- ``` ts wagmi
44+ ``` ts wagmi
4545import { WalletClientAuthenticator } from ' @lit-protocol/auth' ;
4646
4747const authData = await WalletClientAuthenticator .authenticate (walletClient );
48- ```
48+
49+ // Override SIWE fields (e.g., when running on production domains)
50+ const authDataForProd = await WalletClientAuthenticator .authenticate (
51+ walletClient ,
52+ undefined ,
53+ {
54+ domain: ' example.com' ,
55+ uri: ' https://example.com/login' ,
56+ }
57+ );
58+ ```
4959
5060 ``` ts viem/accounts
5161import { ViemAccountAuthenticator } from ' @lit-protocol/auth' ;
@@ -111,4 +121,4 @@ const authContext = await authManager.createPkpAuthContext({
111121});
112122```
113123 </Step >
114- </Steps >
124+ </Steps >
You can’t perform that action at this time.
0 commit comments