Commit 33d738fe authored by 谢宇轩's avatar 谢宇轩

fix: 修复auth middleware调用

parent bc275f33
......@@ -180,7 +180,7 @@ class Application implements ClientInterface
}
}
$authMiddleware = $this->option->getAuthorizationMiddleware();
$stack->push($authMiddleware($this->jwtToken));
$stack->push(new $authMiddleware($this->jwtToken));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment