Skip to content

Commit a6e5233

Browse files
Fix(graphql): issue with local variable squashing intended JWK index (#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
1 parent e9b8560 commit a6e5233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql/authorization/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ func (a *AuthMeta) FetchJWK(i int) error {
513513

514514
func (a *AuthMeta) refreshJWK(i int) error {
515515
var err error
516-
for i := 0; i < 3; i++ {
516+
for n := 0; n < 3; n++ {
517517
err = a.FetchJWK(i)
518518
if err == nil {
519519
return nil

0 commit comments

Comments
 (0)