From 37b5fcb1a5a9396bda083de9cb015729176b8336 Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Thu, 15 Feb 2024 12:59:51 +0000 Subject: [PATCH] Rollback database with no new data --- server/id_token.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/id_token.go b/server/id_token.go index 9f7fc16..58af98f 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