auth-vir - v3.1.0
    Preparing search index...

    Function parseUserJwt

    • Parses a JwtUserData generated from createUserJwt. This should be used on the host (backend) to a client (frontend) request. Do not use this function in client (frontend) code: it requires JWT signing keys which should not be shared with any client (frontend).

      Parameters

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