-
-
Notifications
You must be signed in to change notification settings - Fork 8
Deezcord Environment Api Setup
- Create the ENV variables (CORRECTLY):
These variables have to be set inside of your .env
File
APIPORT=3000
APIHOST="::"
DOMAIN="http://localhost:3000"
DISCORD_CLIENT_SECRET=""
DISCORD_CLIENT_ID=""
APP_SECRET=""
APP_ID=000000
APP_CALLBACK="/deezercallback"
APP_LOGIN="/deezerlogin"
DISCORD_CLIENT_LOGIN="/discordlogin"
DISCORD_CLIENT_CALLBACK_REDIRECT="/discordcallback"
Now you can choose all path values, but they should look something like this.
If you decide to login with a DOMAIN/URL instead of your IP address, then make sure to set that base DOMAIN .env Variable.
How to configure and create your Deezer APP:
- create one in here: https://developers.deezer.com/myapps/create
- paste all values
It is important, that the ending of the Path of:
Redirect URL after authentication
is 1:1 equal to your .env VariableAPP_CALLBACK
After creating the DEEZER APP, you'll get an APP_ID
and APP_SECRET
, set them to the correct .env Variables.
< hr/>
Now you need to configure your DISCORD_CLIENT application, it
-
Go to: https://discord.com/developers/applications -> and then your application.
-
There you can find your
DISCORD_CLIENT_ID
andDISCORD_CLIENT_SECRET
, as well as you HAVE to add the DISCORD Redirect:
It is important that the Redirect ending path of:
at least one of the added Redirects
is 1:1 equal to your .env VariableDISCORD_CLIENT_CALLBACK_REDIRECT
That should be it!