function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
chinnuchinnu 

validity of authorization token

Hi,

 

Could anybody please let me know the validity of the authorization token which we get from saleforce with respect to REST API.

 

Thanks

chinnu

Best Answer chosen by Admin (Salesforce Developers) 
xyz1xyz1

Hi chinnu,

 

Access tokens follow the same rules as regular Salesforce session IDs - they have an idle timeout that is set in Setup | Administration Setup | Session Settings | Session Timeout. The default session timeout is 2 hours, but an org admin can set it to any of a variety of values from 15 minutes to 8 hours. See https://login.salesforce.com/help/doc/user_ed.jsp?loc=help&target=admin_sessions.htm&section=Securit... for more details

All Answers

dkadordkador

I'm not sure what you're asking here.  The auth token can be used with the REST API, as long as your organization has access to the API.

xyz1xyz1

Hi chinnu,

 

Access tokens follow the same rules as regular Salesforce session IDs - they have an idle timeout that is set in Setup | Administration Setup | Session Settings | Session Timeout. The default session timeout is 2 hours, but an org admin can set it to any of a variety of values from 15 minutes to 8 hours. See https://login.salesforce.com/help/doc/user_ed.jsp?loc=help&target=admin_sessions.htm&section=Securit... for more details

This was selected as the best answer