From 3190c699a8ad76678c7f6b2d7aabedb929d8f0b8 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 21 Feb 2019 00:14:28 +0000 Subject: [PATCH] doc cleanup --- doc.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc.go b/doc.go index 34192ad..94dabde 100644 --- a/doc.go +++ b/doc.go @@ -26,9 +26,13 @@ All keys are cached by Thumbprint, as well as kid(@issuer), if available. pubs, err := keyfetch.WellKnownJWK(ThumbOrKeyID, "https://example.com/") pubs, err := keyfetch.JWKs("https://example.com/path/to/jwks/") - pubs, err := keyfetch.JWK(ThumbOrKeyID, "https://example.com/path/to/jwks/) + pubs, err := keyfetch.JWK(ThumbOrKeyID, "https://example.com/path/to/jwks/") - pubs, err := keyfetch.Get("https://example.com/jwk.json) + // From URL + pub, err := keyfetch.Fetch("https://example.com/jwk.json") + + // From Cache only + pub := keyfetch.Get(thumbprint, "https://example.com/jwk.json") A non-caching version with the same capabilities is also available.