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

feat(core/client): expose a wrapped fetch-adhering method from MedplumClient #4065

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

dillonstreator
Copy link
Contributor

@dillonstreator dillonstreator commented Feb 28, 2024

Expose fetch primitive that wraps token refresh from the MedplumClient. This will enable an adapter pattern to provide different graphql clients their fetch method. Namely, Apollo via createHttpLink#fetch.

This will enable hooking into the token refresh and provide an "adapter interface"
for external graphql clients
@dillonstreator dillonstreator requested a review from a team as a code owner February 28, 2024 22:44
Copy link

vercel bot commented Feb 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
medplum-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 5, 2024 5:07pm
medplum-provider ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 5, 2024 5:07pm
medplum-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 5, 2024 5:07pm
medplum-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 5, 2024 5:07pm

Copy link

vercel bot commented Feb 28, 2024

@dillonstreator is attempting to deploy a commit to the Medplum Team on Vercel.

A member of the Team first needs to authorize it.

@dillonstreator dillonstreator changed the title feat(core/client): expose a fetch-like method from MedplumClient feat(core/client): expose a wrapped fetch-adhering method from MedplumClient Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

None yet

1 participant