Open ementele opened 4 years ago
It looks like the patient is present on first login with smart.authProperties.granularity = .launchContext
Maybe .tokenOnly was doing the same thing and I missed it. I will store this patient id and use that for queries.
Another issue is I can't get the auth login to popup again and thought it would be triggered by using reset()
on the client... There doesn't seem to be a logout.
I am probably missing something in the documentation; however, I'm having a lot of trouble figuring out how to log in as a patient and get the logged in patient's info. I've logged in via the browser popup and call authorize each time; however, there is no patient object for the patient id that I logged in with. How do I access that? This app cannot present a list of other patients and I need to only access the info of the user logging in.