Skip to content

Commit 7d8695c

Browse files
committed
comment added
1 parent 221b414 commit 7d8695c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jwks.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"net/http"
1515
)
1616

17-
// JSONWebKey is a JSON web key returned by the JWKS request.
17+
// JSONWebKey is a JSON web key returned by the JWKS request.
1818
type JSONWebKey struct {
1919
Kid string `json:"kid"`
2020
Kty string `json:"kty"`
@@ -41,6 +41,7 @@ type JSONWebKeySet struct {
4141
Keys []JSONWebKey `json:"keys"`
4242
}
4343

44+
// FetchJWKS fetches the JSON web keys from the given URL and returns a map kid -> key.
4445
func FetchJWKS(url string, client *http.Client) (map[string]interface{}, error) {
4546
response, err := client.Get(url)
4647
if err != nil {

0 commit comments

Comments
 (0)