You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was working with the /v2/jwks package and following along the example under the header "Parse and use a JWK key:". It looks like the code in the example for iterating through a keyset might be leftover from v1, as it contains: for it := set.Iterate(context.Background()); it.Next(context.Background()); {
This did not work for me, but using set.Keys(context.Background()) does work to return a functioning iterator. I realized this after reading the v1->v2 changelog. Am I correct in thinking this should be updated?
The text was updated successfully, but these errors were encountered:
I was working with the
/v2/jwks
package and following along the example under the header "Parse and use a JWK key:". It looks like the code in the example for iterating through a keyset might be leftover from v1, as it contains:for it := set.Iterate(context.Background()); it.Next(context.Background()); {
This did not work for me, but using
set.Keys(context.Background())
does work to return a functioning iterator. I realized this after reading the v1->v2 changelog. Am I correct in thinking this should be updated?The text was updated successfully, but these errors were encountered: