How to get user session information after signed in?

I signed in use forio login page, so I don’t have user name and password to create Auth Manager. I like to getCurrentUserSessionInfo, and I tried

var authMgr = new F.manager.AuthManager(); console.log(authMgr.getCurrentUserSessionInfo());

It doesn’t work. How do I get current user name and other info after logged in?

Thanks

Hi Jay,

As you noted, that method only works if you’re logged into the simulation through the authmanager, and will not work if you sign in through epicenter. The auth manager sets a few extra fields in the token direct-login doesn’t set and hence won’t work as such.

-Naren

1 Like