auth-vir - v3.1.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;
                  sessionStartedAt?: number;
                  userId: string
                  | number;
              },
          >
          | undefined,
      >

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