Questions tagged [session-id]
The session-id tag has no usage guidance.
1
question
5
votes
3answers
1k views
Unable to aquire valid session id using an apex class
I wrote my own apex class with the following code:
@AuraEnabled
public static String getSessionId(){
return UserInfo.getSessionId();
}
This code works when I import it into my ...