Can't read .env file

I know this is beginner question but I need help with it. I am trying to make a username and code system. Here is the code of that part:

app.get("/check", (req, res) => {
var Id = req.param(“id”);
var authkey = req.param(“auth_key”);
function getauth() {
try {
var filekey = process.codes.evn.parseInt(id)
if (parseInt(authkey) === filekey) {
res.json(“logged in”)
}else {
res.json(“Wrong auth_key”)
}

  } catch {
    res.json ("Invalid id")

.env file:
1=“1”

So what it does is looks for the variable called 1(for testing) and then checks of auth_key is the same as the value of the variable 1.
I know I did not close it ect… It is because I don’t want to show all the code. The issue is it says invalid id and I think it is because it’s looking for “parseInt(id)” in the .env It may not be the issue but I still am confused and need help.

Thank you and have a good day.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.