Skip to content

Commit 8bd82c0

Browse files
committed
1 parent ead5852 commit 8bd82c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/OAuthAuthenticate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function handle($request, Closure $next, $scopes = null)
4040
$isNewSession = false;
4141
$onlyRedirectInWeChatBrowser = config('wechat.oauth.only_wechat_browser', false);
4242

43-
if (!$this->isWeChatBrowser()) {
43+
if ($onlyRedirectInWeChatBrowser && !$this->isWeChatBrowser()) {
4444
if (config('debug')) {
4545
Log::debug('[not wechat browser] skip wechat oauth redirect.');
4646
}

0 commit comments

Comments
 (0)