Identity manager events not working with TypeScript and Webpack

529
0
06-10-2021 06:10 AM
sobotama
New Contributor

Hi all,

I am trying to catch credentials of a user when he is prompted to login (by listening for the 'credential-create' event on IdentityManager) to gain access to restricted resources hosted on ArcGIS Online, so I can get the generated token, which I need for communication with OrientedImageryAPI. This is the same way I saw it done in a sample app but my event is not triggering after I enter my credentials to the popup login form.

I suspect it has something to do with the fact, that the application is written in TypeScript and then Webpack is used to bundle the application and because of that the IdentityManager I have inside my application is probably a different instance from the one the API (4.18) uses when it prompts the user to login.

Has anyone encountered a similar problem?

0 Kudos
0 Replies