Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | 4 | public function refresh(AuthFactory $auth) |
|
20 | { |
||
21 | 4 | $token = $this->getBearerToken(true); |
|
22 | 4 | if ($token !== false && $token->hasClaim(static::JWT_GUARD_CLAIM)) { |
|
23 | 3 | $guard = $token->getClaim(static::JWT_GUARD_CLAIM); |
|
24 | 3 | return $auth->guard($guard)->refreshToken($token); |
|
25 | } |
||
26 | 1 | return false; |
|
27 | } |
||
28 | |||
63 |