chore: move to non-deprecated ExactOne
fix linter due to deprecation notice on 'func (r Arguments) Exact(name string) bool'
@@ -553,7 +553,7 @@ func (h *Handler) TokenHandler(w http.ResponseWriter, r *http.Request) {
return
}
- if accessRequest.GetGrantTypes().Exact("client_credentials") {
+ if accessRequest.GetGrantTypes().ExactOne("client_credentials") {
var accessTokenKeyID string
if h.c.AccessTokenStrategy() == "jwt" {
accessTokenKeyID, err = h.r.AccessTokenJWTStrategy().GetPublicKeyID(r.Context())
