Back

[Google Sign In] Missing Redirect URL

  • 0
  • Flutter
  • Accounts
SushilGhorasaini
28 Nov, 2023, 15:42

You have to add your own project id

TL;DR
Solution: To fix the issue with the missing redirect URL, add the following code between the 'application' tags in your project: ```xml <application> ... success: "https://<ENDPOINT>/auth/oauth2/success" failure: "https://<ENDPOINT>/auth/oauth2/failure" ... </application> ``` Additionally, make sure to prepare your Android and iOS platforms by following the instructions in the provided links: - Android: https://github.com/appwrite/sdk-for-flutter#android - iOS: https://github.com/appwrite/sdk-for-flutter#ios If you continue to
Pietras
28 Nov, 2023, 15:43

projectId is the correct project id in my Appwrite instance

SushilGhorasaini
28 Nov, 2023, 15:45

Well you have to add the above code between application tags <application>…..</application> tag. Else it’s gonna crash

Pietras
28 Nov, 2023, 15:49

Yea, I have added those lines inside <application> tag, however, in this case, I am getting crash.

Without those lines added, I don't have crash, app stucs on Missing Redirect Url Page 😦

SushilGhorasaini
28 Nov, 2023, 15:50

Can you please send me the debug log for the app?

Pietras
28 Nov, 2023, 15:54
Runpace
28 Nov, 2023, 16:08

I think you are following https://appwrite.io/docs/quick-starts/android but if you are using flutter you should follow https://appwrite.io/docs/quick-starts/flutter

Pietras
28 Nov, 2023, 16:16

Yes, in case when I am following flutter documentation then, I see Missing redirect URL and nothing more.

THE-E
29 Nov, 2023, 19:43

You have to add to your createOAuth2Session function redirect URLs using the parameter success and failure.

Drake
29 Nov, 2023, 20:09

On what platform? And what's your project id?

THE-E
29 Nov, 2023, 21:30

I guess it was Flutter. But the original post is no longer accessible.

Drake
30 Nov, 2023, 15:52

are you still seeing this error?

THE-E
4 Dec, 2023, 23:15

So the solutions is to add success: "https://<ENDPOINT>/auth/oauth2/success" and failure: "https://<ENDPOINT>/auth/oauth2/failure".

Also preparing Android and iOS is necessary: https://github.com/appwrite/sdk-for-flutter#android and https://github.com/appwrite/sdk-for-flutter#ios.

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