We use a secure map service by token generated and saved with *.js file.
We call in constructor "map_service_URL +token" and add to map (no popup)
The layer is invisible first time.
On show layer and on each zoom in/out it is a popup "Please sign in to access the item on" and "Invalid Token" in console.
And even after press "Cancel" in the popup - we can see the layer on the map.
What is a reason for that?
Any help please.