I'm developing an EB app that has a custom widget.
In the widget I am using this line to grab the current user name. The idea is to run a query based on username to limit what shows on the map widget.
getAppStore()?.getState().user.username
This works like a charm in my local development environment.
However, when I download the app and run it on my local IIS, getAppStore()?.getState().user is always null and I couldn't get any username.
Does anyone know what's wrong?