CTK-WARRIOR / Discord-Bot-Dashboard

75 stars 85 forks source link

Help #7

Open alalaha opened 3 years ago

alalaha commented 3 years ago

What should I put in codechallengemethod: '' ? And when I try to log in, it happens this: https://discord.com/oauth2/authorize?protocol=oauth2&response_type=code&access_type&client_id=XXX&redirect_uri=http%3A%2F%2F25.89.212.33%3A3000%2Flogin&scope=identify%20email%20email%20identify&state=VnvVXLDjiV&code_challenge_method=

image

faluhub commented 3 years ago

Remove identify and email from your scopes array, as they are default. For the error you're getting here, make sure to add the the correct redirect uri to your oauth application. To do this, simply go to: https://discord.com/developers/applications//oauth2. Then, under the "Redirects" tab, add the redirect uri that you added to your nuxt config file, and save changes.

Also, the "code_challenge_method" query can stay empty. You don't need to change that

Voila! It should work now :)