public function refreshIfExpired()
    {
        $user = $this->getFrameworkBridge()->getCurrentUser();

        if (! $user) {
            return null;
        }

        $token = $user->getOAuthToken();
        if ($token && $token->hasExpired()) {
            $this->refreshAccessToken($token);
        }
    }