Open ghost opened 1 year ago
You can put it as a string but I recommend that you store it in an .env to avoid leaking and make the configuration of your project simpler.
Thank you
I added this
secret: process.env.DISCORD_SECRET
but it still shows this in console "Without the client.secret parameter, some features of discord-easy-dashboard will be disabled, like Discord authentification or guild settings..." nor is /auth/login accessible. Returns a 404 page
Yes, I did define the secret.
Do you have dotenv installed ?
Yes, I do
Maybe try logging process.env.DISCORD_SECRET in the console idk
Do you have one of theses lines somewhere in your code ?
import 'dotenv/config' require('dotenv').config()
Hey, can I put the secret as a string or does it need to be in a .env?