Working in the Encode and Decode using the NodeJS, I want to Encode the data using the RS512 algorithm, for using that algorithm I have to pass the secret key as a pem file, so I use require to import that pem file but I cannot able to import that file
The Code that I used is
const secretKey = require("./secretkey.pem");
when I import the file like this am getting the error
ReferenceError: Invalid left-hand side expression in prefix operation
How to solve this issue.