Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions docs/base-account/framework-integrations/wagmi/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,8 @@ export function SignInWithBase({ connector }: SignInWithBaseProps) {
const provider = await connector.getProvider();
if (provider) {
try {
// Generate a fresh nonce (this will be overwritten with the backend nonce)
const clientNonce =
Math.random().toString(36).substring(2, 15) +
Math.random().toString(36).substring(2, 15);
// Generate a cryptographically secure nonce using Web Crypto API
const clientNonce = crypto.randomUUID();
console.log("clientNonce", clientNonce);
// Connect with SIWE to get signature, message, and address
const accounts = await (provider as any).request({
Expand Down