zainaltaf
02/11/2025, 6:23 PMnpm run dev to get the app running. It shows me the initial sign in page (next screen shot). But when I press sign in I get the final screen shot. I'll also add it here in a tiny code block:
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invalid",
"details": {
"text": "User not found"
}
}
],
"extension": [
{
"url": "https://medplum.com/fhir/StructureDefinition/tracing",
"extension": [
{
"url": "requestId",
"valueId": "283d0627-7f9e-40a3-88c0-531f8519610f"
},
{
"url": "traceId",
"valueId": "1-67ab94a4-68033d6b2d7e128d75c6f314"
}
]
}
]
}
I don't understand what's going wrong. The only thing that seems to change the behaviour is the medplum api link that I was instructed to use as the redirect uri inside the auth0 configurations online. https://api.medplum.com/auth/external I think that was the link. I'd appreciate any help with this. If you need more information, I'm happy to provide itzainaltaf
02/11/2025, 6:36 PMzainaltaf
02/11/2025, 6:37 PM// The code check
// If the current URL includes a "code" query string param, then we can exchange it for a token
const code = new URLSearchParams(window.location.search).get('code');
useEffect(() => {
console.log('Got code', code);
if (code) {
// Process the code
// On success, remove the query string parameters
medplum
.processCode(code)
.then(() => navigate('/'))
.catch(console.error);
}
}, [medplum, navigate, code]);rahul1
02/13/2025, 4:57 PMrahul1
02/13/2025, 4:59 PMzainaltaf
02/13/2025, 10:07 PMzainaltaf
02/13/2025, 10:15 PMzainaltaf
02/13/2025, 10:15 PMzainaltaf
02/19/2025, 11:48 PMreshma
02/20/2025, 6:01 PMzainaltaf
02/20/2025, 6:13 PM