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

No Token available after some idle time #328

Open
jorisvan-ons opened this issue Mar 23, 2023 · 2 comments
Open

No Token available after some idle time #328

jorisvan-ons opened this issue Mar 23, 2023 · 2 comments

Comments

@jorisvan-ons
Copy link

I am using the WebServer authentication method. When I hit the /authenticate route everything works fine. However, after some idle time on the server the session/token is expired (I assume). Subsequent API requests are therefore failing with the "No token available" error message.

Is there a way for me to programatically authenticate? Forrest::authenticate() doesn't work unfortunately.

Much appreciated!

@jorisvan-ons
Copy link
Author

Still having this issue, any help would be highly appreciated!

@omniphx
Copy link
Owner

omniphx commented Apr 9, 2023

Hi @jorisvan-ons, when you configured your Connected App in Salesforce did you include the scope: "Perform requests at any time (refresh_token, offline_access)"? Without this, there is no way to refresh an expired token

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

No branches or pull requests

2 participants