public static function BynderMediaApi::hasAccessToken in Bynder 7
2 calls to BynderMediaApi::hasAccessToken()
- BynderMediaApi::finishOAuthTokenRetrieval in includes/
BynderMediaApi.inc - BynderMediaApi::__construct in includes/
BynderMediaApi.inc
File
- includes/
BynderMediaApi.inc, line 176 - Manages the Bynder media browser functionality
Class
Code
public static function hasAccessToken() {
$tokens = isset($_SESSION['bynder_data']) ? $_SESSION['bynder_data'] : array();
// Required tokens need to be stored in the session.
if (!isset($tokens['oauth_token']) || !isset($tokens['oauth_token_secret'])) {
return false;
}
return $tokens;
}