In Gorm we can use DB.Where
to check the data of the user from the database for authentication. But I have to use Go Fiber so what can I use in place of DB.Where
to check if the user is present in the database.
var user models.User
database.DB.Where("id = ?", claims.Issuer).(&user)