Skip to content

Commit

Permalink
Fix(graphql): issue with local variable squashing intended JWK index (#…
Browse files Browse the repository at this point in the history
…9114)

A logic error (redeclaring `i` in the loop) in this method disabled the
intension of the method: try 3 times to fetch the *i-th* JWK
  • Loading branch information
matthewmcneely authored Jul 25, 2024
1 parent e9b8560 commit a6e5233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphql/authorization/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ func (a *AuthMeta) FetchJWK(i int) error {

func (a *AuthMeta) refreshJWK(i int) error {
var err error
for i := 0; i < 3; i++ {
for n := 0; n < 3; n++ {
err = a.FetchJWK(i)
if err == nil {
return nil
Expand Down

0 comments on commit a6e5233

Please sign in to comment.