mirror of
https://github.com/1f349/lavender.git
synced 2024-12-22 07:34:06 +00:00
Make sure to rollback as no new data is committed
This commit is contained in:
parent
5387cdb732
commit
4dde40e08e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user