| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function authenticate(ServerRequestInterface $request): ?IdentityInterface |
||
| 30 | { |
||
| 31 | $accessToken = $request->getQueryParams()[$this->tokenParam] ?? null; |
||
| 32 | if (is_string($accessToken)) { |
||
| 33 | return $this->identityRepository->findIdentityByToken($accessToken, get_class($this)); |
||
| 34 | } |
||
| 35 | |||
| 36 | return null; |
||
| 37 | } |
||
| 49 |