auth-vir - v2.3.9
    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: PartialWithUndefined<
            { csrfHeaderName: string; localStorage: Pick<Storage, "getItem"> },
        > = {}

      Returns Readonly<
          _RequireExactlyOne<
              { csrfToken: Readonly<CsrfToken>; failure: CsrfTokenFailureReason },
              "csrfToken" | "failure",
          >,
      >