| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function handle($request, Closure $next, $guard) |
||
| 22 | { |
||
| 23 | app()->singleton('tymon.jwt.auth', function () use ($guard) { |
||
| 24 | /** @var GuardContract $auth */ |
||
| 25 | $auth = auth($guard); |
||
| 26 | |||
| 27 | return new JWTAuth(app('tymon.jwt.manager'), new Illuminate($auth), app('tymon.jwt.parser')); |
||
| 28 | }); |
||
| 29 | |||
| 30 | $this->auth = app('tymon.jwt.auth'); |
||
| 31 | |||
| 32 | $this->authenticate($request); |
||
| 33 | |||
| 34 | $response = $next($request); |
||
| 35 | |||
| 36 | // Send the refreshed token back to the client. |
||
| 37 | return $this->setAuthenticationHeader($response); |
||
| 38 | } |
||
| 40 |