Skip to content

Updating Salesforce sample #116

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

Merged
merged 3 commits into from
Apr 17, 2018
Merged

Updating Salesforce sample #116

merged 3 commits into from
Apr 17, 2018

Conversation

erickoledadevrel
Copy link
Contributor

Addresses #115. The sample wasn't requesting a refresh token and wasn't able to handle the dynamic session invalidation that Salesforce uses.

@erickoledadevrel erickoledadevrel requested a review from grant April 10, 2018 13:25
@erickoledadevrel
Copy link
Contributor Author

@grant Can you PTAL?

} catch (e) {
content = e.toString();
}
if (content.indexOf('INVALID_SESSION_ID') >= 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's more common to see !== -1.
There's no .contains I assume in Apps Script strings, are there?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

@grant grant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I'd use an array for the scopes.
LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants