KEMBOOriginal post
Web Developer
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!
Summary
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.