auth-vir - v5.2.0
    Preparing search index...

    Function extractCookieJwt

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

      Parameters

      • __namedParameters: {
            cookieName: AuthCookie;
            jwtParams: Readonly<ParseJwtParams>;
            rawCookie: string;
        } & PartialWithUndefined<{ cookieNameSuffix: string }>

      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.