node-jwt
    Preparing search index...

    Variable JWKS

    JWKS: {
        fromWeb: (
            url: string | URL,
            options?: Partial<
                {
                    cache: {
                        get: (key: string) => JWKS | undefined | Promise<JWKS | undefined>;
                        set: (key: string, value: JWKS) => void | Promise<void>;
                    };
                    endpointOverride: string;
                    fetch: typeof fetch;
                    overrideEndpointCheck: boolean;
                    timeoutMs: number;
                    ttl: number;
                },
            >,
        ) => Promise<JWKSResolver>;
        normalize: (jwks: JWKS) => JWKS;
        toKeyObject: (jwks: JWKS, kid?: string) => KeyObject;
    }

    Type Declaration

    • fromWeb: (
          url: string | URL,
          options?: Partial<
              {
                  cache: {
                      get: (key: string) => JWKS | undefined | Promise<JWKS | undefined>;
                      set: (key: string, value: JWKS) => void | Promise<void>;
                  };
                  endpointOverride: string;
                  fetch: typeof fetch;
                  overrideEndpointCheck: boolean;
                  timeoutMs: number;
                  ttl: number;
              },
          >,
      ) => Promise<JWKSResolver>
    • normalize: (jwks: JWKS) => JWKS
    • toKeyObject: (jwks: JWKS, kid?: string) => KeyObject