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.
Jul 06, 2016 pm 01:52 PM
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); }
Has anyone ever used WeChat login in Socialite Providers?
Prompt after callback: