| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | private function getTokenFromProvider($authData,callable $callback) |
||
| 41 | {
|
||
| 42 | // if the token value is a closure value, |
||
| 43 | // we will run a user-based token closure. |
||
| 44 | if(app()->has('authenticate.token') && is_callable($token = app()->get('authenticate.token'))){
|
||
| 45 | return $token($authData); |
||
| 46 | } |
||
| 47 | |||
| 48 | // if there is no closure object on the token side, |
||
| 49 | // we use the token value directly generated by the kernel. |
||
| 50 | return call_user_func($callback); |
||
| 51 | } |
||
| 53 | } |