Hi,
I am working on some requirements in aem with aio app builder. so i am trying to do the server based token authentication to aem in the app builder code. So when i try to give the json file path, i am getting no "Token file does not exist in the location", why? also, when i try to print the current directory path i am getting this Current Directory: /nodejsAction/lp25kf3X. So i want to know how to read a json file from the js.. How to give the json file path in index.js?
https://experienceleague.adobe.com/en/docs/experience-manager-learn/getting-started-with-aem-headles....
One difference here is, instead of getting the filename from command line, i am passing directly in the code or from the AEM MCP to app builder request call.
Please let me know if anyone knows the answer! Thanks in advance
Regards,
Bhavani Bharanidharan