question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Impossible to get user data

See original GitHub issue

If 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:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ChrisVilchescommented, Jan 13, 2018

It seems the only possible way to get the user data when I need it is by calling validateToken again and subscribe to it.

0reactions
neroniakycommented, Feb 12, 2019

UserData are now accessible as BehaviorSubject in version 7.1.0-rc.0. Please reopen / comment if this does not fix the problem. Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found