Who is the “current user” before the user gets logged in?
I.E. if I would like to log the current geographic position of every person browsing the website (with their consent ofc). And when they finally sign-up I add to their profile their initial geographic position.
How would that be done?
The current user information come from Cookies if the user is not logged in. So if you Update the Current user data with one that is not logged in, this information will be stored in cookies.
When they signup, just to be sure, store the data into states. And use them to Set other user informations with the signup action.