Back

Cannot authenticate with oauth

  • 0
  • Web
  • Cloud
KEMBO
10 Jun, 2024, 00:58

Hello ive been having issues with oauth only in production, when running node locally everything works as expected only when pushed to Cloudflare Pages oauth doesnt really work. Its basically a clone of the SvelteKit SSR tutorial here: https://appwrite.io/docs/tutorials/sveltekit-ssr-auth/step-1

It throws a 500 Internal Error logs from Cloudflare Pages: { "message": [ "AppwriteException: Invalid redirect" ], "level": "error", "timestamp": 1717980362469 } I tired multiple things with redirect uris and everything i could find and nothing worked. Thanks for help!

TL;DR
Issue: Cannot authenticate with OAuth when pushing to Cloudflare Pages; works locally. Throws 500 Internal Error with "AppwriteException: Invalid redirect" in logs. Attempted various fixes but none worked. Solution: Double check redirect URIs and ensure they are correctly configured in Cloudflare Pages settings.
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