Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when refresh token expires #322

Open
jonathanstegall opened this issue Oct 7, 2019 · 0 comments
Open

Exception when refresh token expires #322

jonathanstegall opened this issue Oct 7, 2019 · 0 comments
Labels
enhancement New feature or request help wanted Other developer help would be great

Comments

@jonathanstegall
Copy link
Member

Is your feature request related to a problem? Please describe.
It is very rare, but there can be an exception that occurs when the Salesforce refresh token expires before it can be updated. In salesforce.php at line 625:

$refresh_token = $this->get_refresh_token();
if ( empty( $refresh_token ) ) {
	throw new Object_Sync_Sf_Exception( esc_html__( 'There is no refresh token.', 'object-sync-for-salesforce' ) );
}

Describe the solution you'd like
We should figure out a way to make it fix itself rather than throwing this exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Other developer help would be great
Projects
None yet
Development

No branches or pull requests

1 participant