Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help #7

Open
alalaha opened this issue Aug 30, 2021 · 1 comment
Open

Help #7

alalaha opened this issue Aug 30, 2021 · 1 comment

Comments

@alalaha
Copy link

alalaha commented Aug 30, 2021

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
Copy link

faluhub commented Sep 1, 2021

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/<client_id>/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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants