Generates a cryptographically secure random state with the Web Crypto API.
function generateState(): string;