docs: restrict SIWE example nonce generation characters (#6741)

This commit is contained in:
Brian Cooper
2025-12-13 22:56:41 -08:00
committed by github-actions[bot]
parent b381f889ef
commit 4a5cdfb2fa

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 {