Impossible to get user data
See original GitHub issueIf the user is logged, it will access this if block. But also there’s no data because it probably hasn’t loaded yet, so it will print undefined.
if(this.authTokenService.userSignedIn()){
// User is logged
console.log(this.authTokenService.currentUserData);
// prints "undefined"
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Unable to get User's data - Stack Overflow
Unable to get User's data · You can try to call fetch before calling get: var user = Parse.User. · Your solution almost...
Read more >Unable to retrieve User() data - Power Platform Community
Solved: Hi everyone, Hoping to get some help on a Lookup formula. It works for me as the creator of the App, but...
Read more >[SOLVED] Chromium - Unable to get the user data directory
Re: [SOLVED] Chromium - Unable to get the user data directory. ~/. config should be owned by you and the group directory should...
Read more >Work with instance user data - Amazon Elastic Compute Cloud
User data must be base64-decoded when you retrieve it. If you retrieve the data using instance metadata or the console, it's decoded for...
Read more >The WIRED Guide to Your Personal Data (and Who Is Using It)
There's no such thing as perfect security, and it's impossible to safeguard against every potential data breach. But how worried should users be ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems the only possible way to get the user data when I need it is by calling validateToken again and subscribe to it.
UserData are now accessible as BehaviorSubject in version 7.1.0-rc.0. Please reopen / comment if this does not fix the problem. Thanks!