Using the OAuth 2.0 JWT Bearer Flow, when does the Access Token need to be renewed?

Let's say the JWT Flow is used to send queries to Salesforce from time to time.

Should one request a new Access Token for every time a query is sent?

Or should one store the Access Token for some time and re-fetch a new one when it expires, like with Refresh Tokens?

1 Answer 1


Salesforce restricts logins to an average of one per second. It is strongly recommended that you keep your access token until you receive an HTTP 401 status code or the expiry time is reached.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .