Hi all,
I'm trying to see if I can use Medplum's Typescript libraries to authenticate and connect to an Epic Sandbox I've created (with ClientID and ClientSecret)
I came across this Medplum post, where it looks like Codex has done something very similar:
https://www.medplum.com/blog/codex-and-the-power-of-g10
At the bottom of the article, in the "How it Works" section, there's a snippet of Typescript code showing how it would be done.
In my own attempt to reproduce this, I notice that the "startLogin()" function in the article defines parameters for "ClientId" and "ClientSecret".
However, when I try to use the same bits of code, the "startLogin()" seems to expect only a username and password.
Indeed, the "Related Resources" section at the very bottom of the article points to "Medplum SDK startLogin" => This link is broken.
I was able to find the startLogin for username/password version here:
https://www.medplum.com/docs/sdk/classes/MedplumClient#startlogin
But alas, I can't find documentation for external Ehr Login that supports the code from the article.
Any help/direction would be greatly appreciated. Thank you!