I'm using firebase in my node js. application, and I want to store its serviceAccountKey.json file in a process.env variable.
Something like this in my dotenv (.env) file
SERVICE_ACCOUNT_KEY={
"type": "anything",
"project_id": "anything",
"private_key_id": "anything",
"private_key": "anything",
"client_email": "anything",
"client_id": "anything",
"auth_uri": "anything",
"token_uri": "anything",
"auth_provider_x509_cert_url": "anything",
"client_x509_cert_url": "anything"
}
But when I do this, It says
Service account must be an object.
Please help me storing this object in process.env variable.