discord-easy-dashboard icon indicating copy to clipboard operation
discord-easy-dashboard copied to clipboard

Secret as String

Open ghost opened this issue 2 years ago • 7 comments

Hey, can I put the secret as a string or does it need to be in a .env?

ghost avatar Oct 04 '23 04:10 ghost

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.

SimonLeclere avatar Oct 04 '23 05:10 SimonLeclere

Thank you

ghost avatar Oct 04 '23 05:10 ghost

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.

ghost avatar Oct 04 '23 05:10 ghost

Do you have dotenv installed ?

SimonLeclere avatar Oct 04 '23 06:10 SimonLeclere

Yes, I do

ghost avatar Oct 04 '23 07:10 ghost

Maybe try logging process.env.DISCORD_SECRET in the console idk

SimonLeclere avatar Oct 04 '23 07:10 SimonLeclere

Do you have one of theses lines somewhere in your code ?

import 'dotenv/config' require('dotenv').config()

SimonLeclere avatar Oct 04 '23 07:10 SimonLeclere