uid
) and perhaps their phone number (phoneNumber
). And you also need your components to re-render whenever these change, to make sure there's no stale data.useDoormanUser
or withDoormanUser
, depending on your preference for React Hooks vs higher order components.useDoormanUser
and withDoormanUser
should only be used on screens/components that show up after a user has signed in. If you use either of these when a user hasn't authenticated yet, it will throw an error.useMaybeDoormanUser
instead: