docs(siwe): fix nonce generation example

This commit is contained in:
Brian Cooper
2025-12-13 13:22:22 -08:00
parent 184f378ef3
commit ac24134dbd

View File

@@ -228,7 +228,7 @@ export const auth = betterAuth({
anonymous: false,
getNonce: async () => {
// Generate a cryptographically secure random nonce
return generateRandomString(32);
return generateRandomString(32, "a-z", "A-Z", "0-9");
},
verifyMessage: async ({ message, signature, address }) => {
try {