Make sure to rollback as no new data is committed

This commit is contained in:
Melon 2024-02-15 12:59:18 +00:00
parent 5387cdb732
commit 4dde40e08e
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -39,6 +39,7 @@ func generateIDToken(ti oauth2.TokenInfo, us *database.DB, key mjwt.Signer) (tok
if err != nil { if err != nil {
return "", err return "", err
} }
tx.Rollback()
token, err = key.GenerateJwt(user.Sub, "", jwt.ClaimStrings{ti.GetClientID()}, ti.GetAccessExpiresIn(), IdTokenClaims{}) token, err = key.GenerateJwt(user.Sub, "", jwt.ClaimStrings{ti.GetClientID()}, ti.GetAccessExpiresIn(), IdTokenClaims{})
return return