Skip to main content

generate_nonce

Generates a cryptographically strong, URL-safe random string to be used as a nonce.

def generate_nonce() - > string

Generates a cryptographically strong, URL-safe unique string to prevent replay attacks or ensure request integrity.

Returns

TypeDescription
stringA 16-byte random URL-safe string encoded in Base64.