How to access the secured web map from arcgis online through javascript without passing the username and password by the user?
You use a Proxy.
https://github.com/Esri/resource-proxy
https://community.esri.com/groups/technical-support/blog/2015/04/07/setting-up-a-proxy/