|
@@ -21,7 +21,7 @@ |
|
|
block discarded – undo |
|
21
|
21
|
// Check if session is present and if it was created for the same grant type |
|
22
|
22
|
// i.e: if the grant type to create the session was `AUTHORIZATION` and the current grant type is |
|
23
|
23
|
// `CLIENT_CREDENTIALS`, we don't want to call the API on behalf of another user. |
|
24
|
|
- if (!empty($session) && isset($session['grant_type']) && ((int)$session['grant_type'] === $this->grantType)) { |
|
|
24
|
+ if (!empty($session) && isset($session['grant_type']) && ((int) $session['grant_type'] === $this->grantType)) { |
|
25
|
25
|
if (!$forceRefresh && isset($session['access_token'])) { |
|
26
|
26
|
if (!isset($session['expires']) || (time() < $session['expires'])) { |
|
27
|
27
|
return $session['access_token']; |
Please login to merge, or discard this patch.