Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: token kid (#18436)

p0ny7c902155585c
diff --git a/backend/api/oauth2/token.go b/backend/api/oauth2/token.go
index 64259d8bbc..efa3c6798d 100644
--- a/backend/api/oauth2/token.go
+++ b/backend/api/oauth2/token.go
@@ -210,6 +210,7 @@ func (s *Service) issueTokens(c echo.Context, client *store.OAuth2ClientMessage,
"client_id": client.ClientID,
}
token := jwt.NewWithClaims(jwt.SigningMethodHS256, claims)
+ token.Header["kid"] = "v1"
accessToken, err := token.SignedString([]byte(s.secret))
if err != nil {
return oauth2Error(c, http.StatusInternalServerError, "server_error", "failed to generate access token")