Vairified TypeScript SDK - v0.3.1
    Preparing search index...

    Function generateState

    • 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.

      Returns string