Back

Invalid success param: URL host must be one of: localhost, cloud.appwrite.io, appwrite.io

  • 0
  • Auth
  • Web
  • Cloud
yuvraj
18 May, 2024, 17:33

Hi, i'm trying to do oauth with nextjs ssr: https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-7#oauth-server-action i'm using github codespaces for development, when the oauth is completed, i'm getting redirected to localhost:3000 instead of the github codespace url of my app I tried hardcoding the success url, but I get the above error. Any help is much appreciated.

TL;DR
Developers are trying to implement OAuth with Next.js SSR but are redirected to localhost:3000 instead of the correct URL. Hardcoding the success URL results in an error stating the host must be one of: localhost, cloud.appwrite.io, appwrite.io.
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