@@ 25,7 25,7 @@ func OAuth2(ctx context.Context, token s
hash := sha512.Sum512([]byte(token))
hashStr := hex.EncodeToString(hash[:])
opts := &database.FilterOptions{
- Filter: sq.Eq{"hash": hashStr},
+ Filter: sq.Eq{"token_hash": hashStr},
}
grants, err := GetGrants(ctx, opts)
if err != nil {