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
Arjun OtturuArjun Otturu 

How to manage authentication token between Salesforce and Lightning so that the Salesforce API calls made from Apex class wouldn't fail as the session cookie changes between the same ?

The session id cookie changes between Lightning and Classic. When a salesforce API is triggered from Lightning, it errors out with unauthorized access. When the same API is triggered form classic, it returns a positive result. Has any one faced this issue and does some one have a solution for the same ?