Function getJWK

  • Fetches a JWK from a given URL and caches it for a given time.

    Parameters

    • url: string = 'https://api-gateway.tecsafe.example.com/.well-known/jwks'

      The URL to fetch the JWK from

    • refresh: number = ...

      The time in milliseconds to cache the JWK

    Returns Promise<createLocalJWKSetReturnType>

    The JWK