From 4dde40e08ec42682e122279daa2941324258f6ec Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Thu, 15 Feb 2024 12:59:18 +0000 Subject: [PATCH] Make sure to rollback as no new data is committed --- server/id_token.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/id_token.go b/server/id_token.go index e7a62b0..72f31f5 100644 --- a/server/id_token.go +++ b/server/id_token.go @@ -39,6 +39,7 @@ func generateIDToken(ti oauth2.TokenInfo, us *database.DB, key mjwt.Signer) (tok if err != nil { return "", err } + tx.Rollback() token, err = key.GenerateJwt(user.Sub, "", jwt.ClaimStrings{ti.GetClientID()}, ti.GetAccessExpiresIn(), IdTokenClaims{}) return