Working on oAuth
This commit is contained in:
parent
289556e673
commit
97d3093b2b
1 changed files with 4 additions and 1 deletions
|
|
@ -100,7 +100,10 @@ class LoginController extends BaseController
|
|||
*/
|
||||
public function redirectToProvider(string $provider)
|
||||
{
|
||||
return Socialite::driver($provider)->redirect();
|
||||
if(request()->has('code'))
|
||||
return $this->handleProviderCallback($provider);
|
||||
else
|
||||
return Socialite::driver($provider)->redirect();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue