| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function handleProviderCallback() |
||
| 30 | { |
||
| 31 | try { |
||
| 32 | $user = Socialite::driver('github')->user(); |
||
| 33 | } catch (\Exception $e) { |
||
| 34 | return redirect()->action('Auth\AuthController@redirectToProvider'); |
||
| 35 | } |
||
| 36 | |||
| 37 | $authUser = $this->findOrCreateUser($user); |
||
| 38 | |||
| 39 | Auth::login($authUser, true); |
||
| 40 | |||
| 41 | return redirect()->action('GistsController@index'); |
||
| 42 | } |
||
| 43 | |||
| 77 |