Back

Magic link: missing redirect url

  • 0
  • Accounts
  • Flutter
Drake
29 Mar, 2023, 20:04

i don't expect the default magic-url auth page to work for a flutter app so i'm really curious how things work 🧐

TL;DR
User is experiencing issues with a missing redirect URL in the magic link and OAuth. They have tried troubleshooting and concluded that the Android emulator is causing the problem. They suggest using the original issue for tracking and closing the new one as a duplicate. Finally, they mention that the default magic URL authentication page may not work for a Flutter app. Solution: User opens a new issue for the problem and provides a link to it on GitHub.
D5
29 Mar, 2023, 20:12

That's what I'm asking myself, why now it works? It's a different hour?

D5
29 Mar, 2023, 20:14

Nope, the session is being opened in the browser instead of the app. That should not happen.

Opened this issue: https://github.com/appwrite/appwrite/issues/5302

Drake
29 Mar, 2023, 20:18

right so it doesn't work?

I think it would be good to just use the previous issue

D5
29 Mar, 2023, 20:19

As you explained, the session is not being opened in the app

D5
29 Mar, 2023, 20:20

Since they're different problems that's why I opened another different, in order to prevent mixing different things

Drake
29 Mar, 2023, 20:32

they're sort of all connected. the intention seemed to have been that you would use the default magic url page, it would redirect you to the app, and you would have a session

D5
29 Mar, 2023, 20:53

Yes, that's what I want

D5
29 Mar, 2023, 20:53

And then since the user has a session, redirect it to a page

Drake
29 Mar, 2023, 20:55

So, best to keep the original issue you created and close the new one as a duplicate

D5
29 Mar, 2023, 20:58

Done

D5
29 Mar, 2023, 22:42

Looks like the Android emulator is bugged and makes appwrite SDK or appwrite cloud not work properly. Meanwhile the exported app works without any inconveniences, the debug app in the emulator opens a new browser window that throws an error, saying that such Auth method is not enabled (obviously it is since if not, the exported app should not work)

D5
29 Mar, 2023, 22:44

I will try to install another emulator, and test directly into my phone to see if that solves all problems

D5
29 Mar, 2023, 22:45

Seems not being related to appwrite

D5
31 Mar, 2023, 16:57

Magic link: missing redirect url

D5
31 Mar, 2023, 16:58

I've tried making an OAuth and it shows missing redirect url, opens the app and the user is not being registered

D5
31 Mar, 2023, 16:58

Same both magic link and OAuth

Drake
31 Mar, 2023, 17:05

if you configured things correctly, the user should be redirected back to your app after seeing that page. There's an open feature request for closing the redirect page after redirect or something considering it's a little confusing to see the "error": https://github.com/appwrite/appwrite/issues/3930

D5
31 Mar, 2023, 17:18

It redirects to app, but no user is being created

Drake
31 Mar, 2023, 17:20

did the user with the same email already exist? does the app have a session?

D5
31 Mar, 2023, 17:27

No session, email not existing

Drake
31 Mar, 2023, 17:27

maybe there was a failure in the oauth flow then. can you go back to the opened browser page and check the URL?

D5
31 Mar, 2023, 17:37

URL seems correct

D5
31 Mar, 2023, 17:46

No error is being shown

D5
31 Mar, 2023, 17:54

There was an existing session, solved

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