src/Authentication/JWTAuthenticationHandler.php 1 location
|
@@ 52-54 (lines=3) @@
|
| 49 |
|
// Get the default user currently logged in via a different way, could be BasicAuth/normal login |
| 50 |
|
$member = Security::getCurrentUser(); |
| 51 |
|
|
| 52 |
|
if (!empty($matches[1])) { |
| 53 |
|
$member = $this->authenticator->authenticate(['token' => $matches[1]], $request); |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
if ($member) { |
| 57 |
|
$this->logIn($member); |
src/Mutations/RefreshTokenMutationCreator.php 1 location
|
@@ 51-53 (lines=3) @@
|
| 48 |
|
$result = new ValidationResult(); |
| 49 |
|
$matches = HeaderExtractor::getAuthorizationHeader($request); |
| 50 |
|
|
| 51 |
|
if (!empty($matches[1])) { |
| 52 |
|
$member = $authenticator->authenticate(['token' => $matches[1]], $request, $result); |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
$expired = false; |
| 56 |
|
if ($member === null) { |