little fix when token fn, is serving a refresh token

This commit is contained in:
Erik Amaru Ortiz
2014-06-17 16:59:36 -04:00
parent dfdca4b48b
commit ccdbb59702

View File

@@ -162,7 +162,9 @@ class Server implements iAuthenticate
$token = $response->getParameters();
if (array_key_exists('access_token', $token)) {
if (array_key_exists('access_token', $token)
&& array_key_exists('refresh_token', $token)
) {
session_start();
$data = $this->storage->getAccessToken($token['access_token']);