Skip to content

Commit

Permalink
Remove debug and todo code
Browse files Browse the repository at this point in the history
  • Loading branch information
alecgeatches committed Dec 2, 2024
1 parent d62660b commit 79f5f75
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions inc/Integrations/SalesforceB2C/Auth/SalesforceB2CAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,6 @@ private static function save_access_token( string $access_token, int $expires_in
// Expires 10 seconds early as a buffer for request time and drift
$access_token_expires_in = $expires_in - 10;

// Debug
$access_token_expires_in = 30;

$access_token_data = [
'token' => $access_token,
'expires_at' => time() + $access_token_expires_in,
Expand Down Expand Up @@ -199,9 +196,6 @@ private static function save_refresh_token( string $refresh_token, int $expires_
// Expires 10 seconds early as a buffer for request time and drift
$refresh_token_expires_in = $expires_in - 10;

// Debug
$refresh_token_expires_in = 120;

$refresh_token_data = [
'token' => $refresh_token,
'expires_at' => time() + $refresh_token_expires_in,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public function get_request_headers( array $input_variables ): array {
];

if ( is_wp_error( $access_token ) ) {
// alecg todo: Surface error in get_request_headers() parent call
return $headers;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public function get_request_headers( array $input_variables ): array {
];

if ( is_wp_error( $access_token ) ) {
// alecg todo: Surface error in get_request_headers() parent call
return $headers;
}

Expand Down

0 comments on commit 79f5f75

Please sign in to comment.