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

    Function getCurrentCsrfToken

    • Used in client (frontend) code to retrieve the current CSRF token in order to send it with requests to the host (backend).

      Parameters

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

          Override the default CSRF token header name.

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

          Allows mocking or overriding the global localStorage.

          globalThis.localStorage
          

      Returns undefined | string