Hi,
I'm using ArcGIS Javascript API 4.15, facing an issue while generating a token for the ArcGIS online MapService.
When multiple users (for example around 10 users) try to load the map with the same UserName/Password, the login popup appears for some users.
the code is :
serverInfo= {
"hasServer": true,
"server": <serverUrl>,
"tokenServiceUrl": <tokenServiceUrl>
}
parameters= {
f: "json",
"username": <userName>,
"password": <pwd>
}
var def = this.esri.identityManager.generateToken(serverInfo, parameters);
def.then((tokenInfo) => {
this.esri.identityManager.registerToken({
"server": <serviceUrl>,
"token": <token>
"userId": <username>,
"expires": <expires>,
"ssl": <ssl>
})
})