auth-vir - v2.5.0
    Preparing search index...

    Function extractCookieJwt

    • Extract an auth cookie from a cookie string. Used in host (backend) code.

      Parameters

      • rawCookie: string
      • jwtParams: Readonly<ParseJwtParams>
      • cookieName: string = AuthCookieName.Auth

      Returns Promise<ParsedJwt<{ csrfToken: string; userId: string | number }> | undefined>

      The extracted auth Cookie JWT data or undefined if no valid auth JWT data was found.