auth-vir - v1.3.1
    Preparing search index...

    Function wipeCurrentCsrfToken

    • Wipes the current stored CSRF token. This should be used by client (frontend) code to logout a user or react to a session timeout.

      Parameters

      • overrides: { csrfHeaderName?: string; localStorage?: Pick<Storage, "removeItem"> } = {}
        • OptionalcsrfHeaderName?: string

          Override the default CSRF token header name.

        • OptionallocalStorage?: Pick<Storage, "removeItem">

          Allows mocking or overriding the global localStorage.

          globalThis.localStorage
          

      Returns void