Skip to content
Back

Issues with OAuth on Appwrite 1.6.2

  • 0
  • Self Hosted
  • Auth
  • Web
Zeke(Jafesu)
8 Sep, 2025, 22:01

I am trying to setup Twitch OAuth on a Next.js app with Appwrite 1.6.2

This is my OAuth code

TypeScript
account.createOAuth2Session(
      OAuthProvider.Twitch,
      successUrl || "/auth/success",
      failureUrl || "/auth/failure",
    );

But when it routes, i am getting a 404 from appwrite

The URL it routes to is https://[redacted]/account/sessions/oauth2/twitch?success=%2Fauth%2Fsuccess&failure=%2Fauth%2Ffailure&project=[redacted]

TL;DR
Developers are experiencing issues with setting up Twitch OAuth on Appwrite 1.6.2. When routing, they receive a 404 error from Appwrite with the provided URL. Solution: The issue seems to lie in the routing URL format. Make sure the routing path is correctly configured in the Appwrite console to match the route being redirected to.
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