New answers tagged

0 votes

sf auth:jwt:grant hanging - no terminal output

Issue was related to role scope: I needed to add "Perform Requests at any time" to the scope of the app. Wasnt able to refresh the JWT. Now we are authenticated.
smedium's user avatar
0 votes

Programmatically edit authentication parameter of external credentials

Yes, it is possible using the ConnectApi.NamedCredentials.patchCredential() method. You can find the documentation of the method here. As an example, this code updates a External Named credential ...
Alberto's user avatar
  • 51
1 vote
Accepted

Should an Access Token be renewed for every call using JWT?

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.
sfdcfox's user avatar
  • 487k

Top 50 recent answers are included