After login I'm receiving the username as undefined.
Debugging I've seen that the variable is wrong in the updateDataFromCache function:
if (user) { this.user.username = user.username; this.user.profile = user.profile; this.user.token = token; this.user.error = this.context.getLoginError(); }
I've changed it to (notice capital N):
After login I'm receiving the username as undefined.
Debugging I've seen that the variable is wrong in the updateDataFromCache function:
if (user) { this.user.username = user.username; this.user.profile = user.profile; this.user.token = token; this.user.error = this.context.getLoginError(); }
I've changed it to (notice capital N):this.user.username = user.userName;
Am I right?