Generate a cryptographically-random CSRF state token suitable for use with OAuthResource.authorize.
Uses the Web Crypto API (available in Node 19+ and all modern browsers). The returned string is URL-safe base64 of 32 random bytes.
Generate a cryptographically-random CSRF state token suitable for use with OAuthResource.authorize.
Uses the Web Crypto API (available in Node 19+ and all modern browsers). The returned string is URL-safe base64 of 32 random bytes.