I know this is an old thread but I'm investigating this now. I use clerk for my auth on my apps (3 platforms, nextjs, ios and android) and have been working on how I can use MP inside to enable some EHR like functionality, since our app bolts onto ehr's and people are asking us for our own EHR platform,
However I cannot do a token exchange successfully with meplum which brought me to this tread.
I can do the 3 way oAuth but that really forces the user to auth into my app then re-auth the same account with medplum. This isn't ideal. I searched on clerk and there are really just 2-3 messages in discord about this. From my work it seems that the Clerk JWT to the oAuth token is a problem. is that what others discovered?
Thx and I'm enjoying the MP experience.
Wes