There are many resources that all have emails on them. The projectMembership, the User, the Patient / Practitioner etc. Just confirming that the email that matters here, for auth0 login, is the email on User. Or is it supposed to be projectMembership's email?
Side-question: I noticed that if I go to project / users it lists users (people that can login to medplum), but if I go to "resource type User" it only shows Users I have manually created in our backend logic. Meaning, if we use the medplum app "invite user", it doesnt create a User resource for that user, BUT that user still shows up under project / users. Its confusing. Is project / users pulling from "projectMembership" or something? What is a User for then? Do I need to create Users for external IDP to work, or should I only use projectMemberships and not create Users at all?