Skip to content

Deezcord Environment Api Setup

Tomato6966 edited this page Oct 27, 2022 · 1 revision

In here you'll see how to setup the Deezcord login api

  1. 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:

  1. create one in here: https://developers.deezer.com/myapps/create
  2. paste all values

image

It is important, that the ending of the Path of: Redirect URL after authentication is 1:1 equal to your .env Variable APP_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

  1. Go to: https://discord.com/developers/applications -> and then your application.

  2. There you can find your DISCORD_CLIENT_ID and DISCORD_CLIENT_SECRET, as well as you HAVE to add the DISCORD Redirect:

image

It is important that the Redirect ending path of: at least one of the added Redirects is 1:1 equal to your .env Variable DISCORD_CLIENT_CALLBACK_REDIRECT

That should be it!

Clone this wiki locally