Skip to content
Back

Issue with OAuth 2.0 authentication

  • 0
  • Self Hosted
  • Auth
ManonOnAir
23 Mar, 2026, 23:08

Good evening,

I’m reaching out because I’m having a small issue with Appwrite. I’m trying to set up OAuth2 with Twitch, and even though I’m entering the correct redirect URL, I keep getting this error: redirect_mismatch.

I’ve got Appwrite sitting behind an Nginx proxy that communicates with it over HTTPS, but I’m still running into the same issue.

Could you help me out? I’ve looked through the documentation and the GitHub issues, but nothing’s helped so far. Thanks a lot!

TL;DR
Issue with OAuth 2.0 authentication for Twitch on Appwrite, despite correct redirect URL. Ensure 'force https' environmental variable is set to enable. The redirect URI received is 'http://mondomaine.fr:443', but should be 'https://mondomaine.fr/'. Ensure HTTPS is enforced to remedy the 'redirect_mismatch' error.
ManonOnAir
23 Mar, 2026, 23:19

Twitch is receiving this as the redirect URI: http://mondomaine.fr:443

Even though it’s supposed to be getting https://mondomaine.fr/

Steven
23 Mar, 2026, 23:51

make sure the force https env var is set to enabled

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more