NickTheMusketeerOriginal post
Web Developer
I am attempting to integrate with Discord's OAuth. So far I have;
- Created a Discord app and added my Appwrite's project redirect URI
- I enabled Discord OAuth in Appwrite Auth and provided the App ID and App Secret
- When I attempt to call the
createOAuth2Sessionit works in the sense that I reach the Discord OAuth confirmation page and I clickAuthorise - Once I get redirected back to my app (
http://localhost:3000), I get the following error:
{"message":"Failed to obtain access token. The Discord OAuth2 provider returned an error: invalid_client: No description","type":"user_oauth2_unauthorized","code":401}
I'm not sure I understand where the problem seems to be and invalid_client lacking description makes it harder to debug.
Summary
Issue with Discord OAuth integration in Appwrite Cloud. When trying to edit Discord OAuth2 settings, the App ID changes to the Cloud email. Upon redirect back to the app after authorizing, the error "invalid_client: No description" occurs.
Solution:
Ensure that the correct App ID and App Secret are provided when enabling Discord OAuth in Appwrite Auth. Check the redirect URI and confirm that it matches the one set in the Discord app. If the issue persists, contact Appwrite support for further assistance.