Hi,
I have created a feature service layer on my arcgis online portal and hosted it there also. Now I want to use this feature service layer on map through arcgis javascript api v3.2. Now I want to pass username and password through code and can access feature service layer as I don't want to ask credential from user.
Can you please provide me some sample code in ArcGIS API JavaScript 3.20.
Thanks,
Kamal