@synonymdev/pubky
    Preparing search index...

    Class CookieSession

    Cookie-only view over a cookie-backed Session.

    Grant-backed sessions do not expose this view; use session.cookie and check for undefined before calling cookie-specific methods.

    Index
    • Returns void

    • Export session metadata for legacy cookie restore.

      The returned string contains no secrets; the browser cookie jar must still hold the HTTP-only cookie.

      Returns string

    • Export the cookie secret needed to restore this cookie session.

      This is available when the SDK captured the cookie secret, such as in Node.js. Browser sessions cannot read HTTP-only Set-Cookie values.

      Returns Promise<string>

    • Returns void