mock the authenticated user? #464
-
The example login shows
Is this intended to hit the live firebase server with a uid of an existing user? Or is it a fake uid that returns mock result? |
Beta Was this translation helpful? Give feedback.
Answered by
prescottprue
Aug 23, 2022
Replies: 1 comment
-
@bspksal It really hits Firebase's servers for auth (you can have it hit emulators instead), but the string can be any value as Firebase will just add this as a new Firebsae Auth user with the given UID and no auth provider. This is helpful if you want to associate data in a real database or in the emulators to specific user which you then login as and interact with your application. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
prescottprue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@bspksal It really hits Firebase's servers for auth (you can have it hit emulators instead), but the string can be any value as Firebase will just add this as a new Firebsae Auth user with the given UID and no auth provider.
This is helpful if you want to associate data in a real database or in the emulators to specific user which you then login as and interact with your application.