We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ead5852 commit 8bd82c0Copy full SHA for 8bd82c0
src/Middleware/OAuthAuthenticate.php
@@ -40,7 +40,7 @@ public function handle($request, Closure $next, $scopes = null)
40
$isNewSession = false;
41
$onlyRedirectInWeChatBrowser = config('wechat.oauth.only_wechat_browser', false);
42
43
- if (!$this->isWeChatBrowser()) {
+ if ($onlyRedirectInWeChatBrowser && !$this->isWeChatBrowser()) {
44
if (config('debug')) {
45
Log::debug('[not wechat browser] skip wechat oauth redirect.');
46
}
0 commit comments