Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login as patient without list. #32

Open
ementele opened this issue Jul 17, 2020 · 1 comment
Open

Login as patient without list. #32

ementele opened this issue Jul 17, 2020 · 1 comment

Comments

@ementele
Copy link

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.

image

@ementele
Copy link
Author

ementele commented Jul 17, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant