Skip to content

Does Auth.currentUser still have a purpose? #4570

Answered by sam-gc
akauppi asked this question in Archive
Discussion options

You must be logged in to vote

Using the state listeners is definitely the best pattern to follow, but currentUser should not become null unless you sign out. Out of curiosity, are you running this code on multiple tabs? Persistence events are the only things I can think of that would cause it to become null without the app doing anything.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@akauppi
Comment options

@sam-gc
Comment options

@akauppi
Comment options

@akauppi
Comment options

@sam-gc
Comment options

Answer selected by Feiyang1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants