Table of Contents
Home
Backend Development
PHP Tutorial
Laravel 5.2 uses WeChat in Socialite Providers to log in. You can jump to WeChat to display the QR code, but the user information cannot be obtained.



Laravel 5.2 uses WeChat in Socialite Providers to log in. You can jump to WeChat to display the QR code, but the user information cannot be obtained.
laravel
oauth2
php
The package used is this https://github.com/SocialiteProviders/Weixin-Web
The code is as follows:
public function weixin() { return \Socialite::with('weixinweb')->redirect(); } public function weixin_callback() { $oauthUser = \Socialite::driver('weixinweb')->user(); var_dump($oauthUser); }
Copy after login
Copy after login
Has anyone ever used WeChat login in Socialite Providers?
Prompt after callback: