Level 10
Hi @vrkansagara, try this:
// Inside your routes file:
Route::get('{driver}/callback', 'Auth\LoginController@handleProviderCallback')
->name('login.callback');
// Inside your login controller
public function handleProviderCallback($driver)
{
try {
$user = Socialite::driver($driver)->user();
return redirect()->route('dashboard');
} catch (\Exception $exception) {
return $exception;
}
}