Hi, I am trying to use medplum client in my nodejs...
# dev
h
Hi, I am trying to use medplum client in my nodejs app. While trying to login using email and password using startlLogin method i am getting this error
Copy code
Error fetching Medplum resource: ReferenceError: sessionStorage is not defined
    at Ir.startPkce (/Users/hirdeshkumar/MB-HealthConnect/server/node_modules/@medplum/core/src/client.ts:3006:5)
    at Ir.ensureCodeChallenge (/Users/hirdeshkumar/MB-HealthConnect/server/node_modules/@medplum/core/src/client.ts:1087:46)
    at Ir.startLogin (/Users/hirdeshkumar/MB-HealthConnect/server/node_modules/@medplum/core/src/client.ts:1041:24)
    at login (/Users/hirdeshkumar/MB-HealthConnect/server/src/auth/login.ts:85:43)
    at Layer.handle [as handle_request] (/Users/hirdeshkumar/MB-HealthConnect/server/node_modules/express/lib/router/layer.js:95:5)
    at next (/Users/hirdeshkumar/MB-HealthConnect/server/node_modules/express/lib/router/route.js:144:13)
    at Route.dispatch (/Users/hirdeshkumar/MB-HealthConnect/server/node_modules/express/lib/router/route.js:114:3)
    at Layer.handle [as handle_request] (/Users/hirdeshkumar/MB-HealthConnect/server/node_modules/express/lib/router/layer.js:95:5)
    at /Users/hirdeshkumar/MB-HealthConnect/server/node_modules/express/lib/router/index.js:284:15
    at Function.process_params (/Users/hirdeshkumar/MB-HealthConnect/server/node_modules/express/lib/router/index.js:346:12)
this is what i am doing const medplumClient = new MedplumClient({ baseUrl:
http://localhost:8103/
, }); const userLogin = await medplumClient.startLogin({ email, password, remember });
157 Views