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
Veera GoriparthiVeera Goriparthi 

[{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}]

Hi,
I am using REST API to access my SF account, while login usinf OAuth I am getting Access TOken, but when I use it to get account details I am getting below error all the time, if I get refresh token that time also same issue.

Error while sending Salesforce request {}HTTP_401 : [{"message":"Session expired
 or invalid","errorCode":"INVALID_SESSION_ID"}]

Thanks,
Veera
ShashankShashank (Salesforce Developers) 
Please follow the steps in this and see if it resolves your issue: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/quickstart_oauth.htm