FlexpaLink.create({
publishableKey: import.meta.env.VITE_FLEXPA_PUBLISHABLE_KEY,
onSuccess: async (publicToken: string) => {
/* Make a request to the `POST /flexpa-access-token` endpoint
defined in `server`.
Include the `publicToken` in the body. */
const resp = await fetch(
`${import.meta.env.VITE_SERVER_URL}/flexpa-access-token`,
{
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({ publicToken }),
}
);
},
});
"Partnering with Flexpa has significantly enhanced our patient onboarding process at Curavit."
Joel Morse
Founder and CEO, Curavit Clinical Research