/** * Deletes stored OAuth credentials. */ public function deleteOAuthCredentials($endpointName = "connections") { $this->_delete('__SBTK_TOKEN_TYPE'); $this->_delete('__OAUTH_SBTK_TOKEN'); $this->_delete('__OAUTH_SBTK_TOKEN_SECRET'); $this->_delete('__REQUEST_SBTK_TOKEN'); $this->_delete('__SBTK_TOKEN'); $this->_delete('__OAUTH_SBTK_VERIFIER_TOKEN'); $this->_delete('__OAUTH_REQUEST_TOKEN_SECRET'); // Destroy cookie SBTCookie::set(SESSION_NAME, "", time() - 3600); }