Skip to content
Back

Google OAUTH

  • 0
  • Web
7777Chaitanya
17 Jan, 2024, 23:13

Hey Appwriters. I am trying to integrate Google oauth in my Appwrite project. I am facing this error. I searched the internet but couldn't find any recent solutions and the older solution doesn't seem to work. Can someone help me, please?

**Missing redirect URL

Your OAuth login flow is missing a proper redirect URL. Please check the OAuth docs and send request for new session with a valid callback URL.**

TL;DR
Developers are discussing an error they encountered while trying to integrate Google OAuth into their Appwrite project. They have tried various solutions found on the internet, but none of them have worked. The error message states that there is a missing redirect URL in the OAuth login flow. A developer suggests adding the callback URL to the list of Javascript Origins, but this solution does not work for the original poster. It is determined that the developer is running Appwrite locally on Docker and is currently developing the application. It is also clarified that they are not using Appwrite Cloud but have installed Appwrite as a dependency. There is no definitive solution provided in the
kamal.panara
17 Jan, 2024, 23:23

have you added correct callback URL here ?

7777Chaitanya
17 Jan, 2024, 23:25

Hey @kamal.panara . I have done that.

kamal.panara
17 Jan, 2024, 23:28

are you on Appwrite self-hosted or Appwrite cloud?

7777Chaitanya
17 Jan, 2024, 23:32

I haven't deployed it yet. I am currently developing the application.

kamal.panara
17 Jan, 2024, 23:33

so you are running appwrite locally on docker

7777Chaitanya
17 Jan, 2024, 23:33

No. I installed appwrite package as a dependency

kamal.panara
17 Jan, 2024, 23:34

okay, are you using Appwrite Cloud ?

7777Chaitanya
17 Jan, 2024, 23:34

yes

kamal.panara
17 Jan, 2024, 23:39

are you running your web app locally ? then make sure to add localhost in Javascript Origins

7777Chaitanya
17 Jan, 2024, 23:47

I did that too. No luck

kamal.panara
17 Jan, 2024, 23:50

add it on the top of the list in Javascript Origins like this http://localhost

ideclon
18 Jan, 2024, 00:43

Does the page you see this error on have a https://cloud.appwrite.io URL, or a Google URL?

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