Using JWT AuthToken method, Dashboard page loads but reports don't load

Helical Community edition.
I am trying to use JWT token for authentication. While the authentication is successful, the actual chart/report don’t show on the screen.

The console shows that window.DashboardGlobals is not defined.
Attaching the console screenshot below. Please check.

Attaching the log file. It appears that when trying to access custom script, the Role value change to anonymous.
helical.txt (591.7 KB)