Skip to content

Commit 0df448e

Browse files
committed
docs(auth): add example for overriding SIWE fields in WalletClientAuthenticator
1 parent 3179020 commit 0df448e

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

docs/sdk/auth/pkp-native-auth/pkp-eoa-auth.mdx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,21 @@ description: "Externally Owned Account (EOA) authentication uses your existing E
4141
Use the WalletClientAuthenticator/ViemAccountAuthenticator to authenticate your connected wallet and generate auth data.
4242

4343
<CodeGroup>
44-
```ts wagmi
44+
```ts wagmi
4545
import { WalletClientAuthenticator } from '@lit-protocol/auth';
4646

4747
const 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
5161
import { ViemAccountAuthenticator } from '@lit-protocol/auth';
@@ -111,4 +121,4 @@ const authContext = await authManager.createPkpAuthContext({
111121
});
112122
```
113123
</Step>
114-
</Steps>
124+
</Steps>

0 commit comments

Comments
 (0)