You need to sign in to do that
Don't have an account?
PJ Pillai
LWC and Named Credentials
Hello,
I already know how to use Named Credentials in Apex however I need to know if LWC support Named Credentials.
I'm calling a external rest service from LWC and I need to pass on Authorization header. This credentials is stored as Named Credential. Stored crdentials in the custome object is security issue.
Thanks,
PJP
I already know how to use Named Credentials in Apex however I need to know if LWC support Named Credentials.
I'm calling a external rest service from LWC and I need to pass on Authorization header. This credentials is stored as Named Credential. Stored crdentials in the custome object is security issue.
Thanks,
PJP
For LWC Named credentials callouts go through below link it may helpful for you.
https://www.developer.atsiro.com/2019/01/24/lwc-part-4/
https://rajvakati.com/2019/02/12/how-to-call-soap-callouts-in-lightning-web-components/
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi
However, the link you posted is not helpfull because as I said in my post, I need to call external rest service directly from LWC (JavaScript layer using Fetch API) and not from Apex class. It is mulit-part file upload. Salesforce enforces some limitation on the file size if you go throrugh Apex. My solution will be accessing the service directly from LWC since there could be large file uploads.
I wanted to know if LWC supports Named Credentials.
Thanks again.