diff --git a/web/auth.go b/web/auth.go index 475047b2..db9c2f54 100644 --- a/web/auth.go +++ b/web/auth.go @@ -354,7 +354,9 @@ func checkBearer(c *fibre.Context, info string, callback func() error) (err erro c.Set(varKeyAuth, &cnf.Auth{Kind: cnf.AuthDB}) - qvars := map[string]interface{}{"id": auth.Data} + qvars := map[string]interface{}{ + "id": auth.Data, "token": vars, + } query := &sql.Query{Statements: []sql.Statement{exp.Expr}}