Rollback database with no new data

This commit is contained in:
Melon 2024-02-15 12:59:51 +00:00
parent b1dc2d106a
commit 37b5fcb1a5
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 {
return "", err
}
tx.Rollback()
token, err = key.GenerateJwt(user.Sub, "", jwt.ClaimStrings{ti.GetClientID()}, ti.GetAccessExpiresIn(), IdTokenClaims{})
return