From a7ddd3d1ffceafa60025cb398159bb0799c76723 Mon Sep 17 00:00:00 2001 From: LandaMm Date: Thu, 29 May 2025 14:56:12 +0200 Subject: [PATCH] fix: use env issuer --- internal/oauth/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/oauth/routes.go b/internal/oauth/routes.go index 837c919..ff821c8 100644 --- a/internal/oauth/routes.go +++ b/internal/oauth/routes.go @@ -198,7 +198,7 @@ func (h *OAuthHandler) tokenEndpoint(w http.ResponseWriter, r *http.Request) { Nonce: nonce, Roles: []string{"user", "admin"}, RegisteredClaims: jwt.RegisteredClaims{ - Issuer: "https://cb5f-2a00-10-5b00-c801-e955-5c68-63d0-b777.ngrok-free.app", + Issuer: h.cfg.Jwt.Issuer, // TODO: use dedicated API id that is in local DB and bind to user there Subject: user.ID.String(), Audience: jwt.ClaimStrings{clientId},