Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function resolveUserByProviderCredentials(string $provider, string $accessToken): ?Authenticatable |
||
31 | { |
||
32 | // Return the user that corresponds to provided credentials. |
||
33 | // If the credentials are invalid, then return NULL. |
||
34 | switch ($provider) { |
||
35 | case 'google': |
||
36 | return $this->googleAuth($accessToken); |
||
37 | } |
||
38 | |||
39 | return null; |
||
40 | } |
||
56 |