Does anyone know what the safe and correct way to ...
# dev
k
Does anyone know what the safe and correct way to use the MedplumClient on the frontend? It looks like we need to use the medplum client id in order for us to use MedplumClient, but I assume medplum client id is a secret key that should be kept secure. I looked in the medplum
app
project and see that they have an
.env
file with
MEDPLUM_CLIENT_ID=...
, and later they import it with
{clientId: import.meta.env?.MEDPLUM_CLIENT_ID}
. Does anyone know if this is safe? I've never used
import.meta.env?.
before. We don't want any risk of secret keys getting exposed on the forntend react app
r
Hi @khonlieu ! This would be a great post for our #1094022380659155005 channel. I can answer there
k
Thanks! I'll copy it over there!
169 Views