Skip to content

Commit

Permalink
fix: handle error
Browse files Browse the repository at this point in the history
  • Loading branch information
joel authored and joel committed Feb 27, 2024
1 parent 0e351fd commit 0248a62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/api/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,9 @@ func (a *API) updateMFASessionAndClaims(r *http.Request, tx *storage.Connection,
if terr := models.AddClaimToSession(tx, session.ID, authenticationMethod); terr != nil {
return terr
}
tx.Load(session, "AMRClaims")
if terr := tx.Load(session, "AMRClaims"); terr != nil {
return terr
}

token, err := session.FindCurrentlyActiveRefreshToken(tx)
if err != nil {
Expand Down

0 comments on commit 0248a62

Please sign in to comment.