drupflare/worker - v1.0.4
    Preparing search index...

    Function rememberRoles

    • Records the role set a Durable Object reported for a session.

      It is read off the object's own response, never the request, so it needs no signature (a client presents a cookie, not a role set). A role change, logout or password change moves what the object reports for that cookie, and the key moves with it.

      Parameters

      • cookie: string
      • roles: string
      • nowMs: number

      Returns void