File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,16 @@ func NewCache(ctx context.Context, options ...CacheOption) *Cache {
166
166
//
167
167
// Please refer to the documentation for `(httprc.Cache).Register` for more
168
168
// details.
169
+ //
170
+ // Register does not check for the validity of the url being registered.
171
+ // If you need to make sure that a url is valid before entering your main
172
+ // loop, call `Refresh` once to make sure the JWKS is available.
173
+ //
174
+ // _ = cache.Register(url)
175
+ // if _, err := cache.Refresh(ctx, url); err != nil {
176
+ // // url is not a valid JWKS
177
+ // panic(err)
178
+ // }
169
179
func (c * Cache ) Register (u string , options ... RegisterOption ) error {
170
180
var hrropts []httprc.RegisterOption
171
181
var pf PostFetcher
You can’t perform that action at this time.
0 commit comments