API Reference — @tuwaio/siwx (CAIP-122 Authentication Layer)
generateNonce()
generateNonce():
string
Defined in: packages/siwx-core/src/validateMessage.ts:198
Generates a cryptographically secure random nonce string suitable for CAIP-122 messages. Produces a 16-byte random hex string (32 characters).
Returns
string
A 32-character hexadecimal nonce string.
Example
const nonce = generateNonce(); // e.g., "a4f3b2c1d0e5f6789..."Last updated on