function fetchKeys
fetchKeys(
origin: string,
fresh?: boolean
): Promise<JSONWebKeySet>

Returns the public keys of the instance at origin, cached unless fresh asks to refetch them and they weren't in the last minute.

Parameters

origin: string
optional
fresh: boolean = false

Return Type

Promise<JSONWebKeySet>

Throws

Error

When they can't be fetched.

Usage

import { fetchKeys } from "api/remote/gerbeur-instance.ts";