Skip to content

Commit

Permalink
Fix method argument order
Browse files Browse the repository at this point in the history
  • Loading branch information
Micah Parks committed Oct 31, 2022
1 parent fd60eda commit 84fbad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyfunc.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (j *JWKS) Keyfunc(token *jwt.Token) (interface{}, error) {
return nil, fmt.Errorf(`%w: the JWT header did not contain the "alg" parameter, which is required by RFC 7515 section 4.1.1`, ErrJWKAlgMismatch)
}

return j.getKey(kid, alg)
return j.getKey(alg, kid)
}

// base64urlTrailingPadding removes trailing padding before decoding a string from base64url. Some non-RFC compliant
Expand Down

0 comments on commit 84fbad5

Please sign in to comment.