Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions controllers/HelpScout_API.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ public static function save_oauth_token( $data = object ) {
///////////

public static function maybe_refresh_token() {
//check to see if connection was made in admin before attempting to auth
if( ! HSD_Settings::get_app_id() || ! HSD_Settings::get_secret() ){
return false;
}
$auth = array(
'client_id' => HSD_Settings::get_app_id(),
'client_secret' => HSD_Settings::get_secret(),
Expand Down