Back

createMagicURLSession without url in mobile

  • 0
  • Flutter
eroo36
15 Feb, 2023, 13:41

When I go to the URL in the email from my simulator and from my real android phone, it does not open the app instead, in the web browser, it says missing redirect URL. In the docs, it is mentioned that if you will be using this link from a mobile phone, you don't need to pass a redirect URL.

I also implemented other auth methods such as google, apple and email/password so i assume my setup is correct cause those work fine

TL;DR
User is experiencing an issue with the createMagicURLSession without url in mobile. The webview of Google/Apple OAuth screen automatically closes, causing the user to be redirected to the web browser where they see a "missing redirect URL" error. The user has implemented other auth methods which are working fine. Possible solution: Check the redirect URL configuration for the createMagicURLSession method. Make sure that the redirect URL is correctly set up for mobile devices.
joeyouss
15 Feb, 2023, 15:09

Hi there, thank you for your question, are you being redirected into the app with google and apple?

eroo36
15 Feb, 2023, 16:01

yes, well, google and apple open webview within the app so it just closes that when process is complete and account object is updated with user data

eroo36
15 Feb, 2023, 16:01

google and apple doesnt open external web browser

eroo36
15 Feb, 2023, 16:02

when using email method i have to go to my mail app and open the link from there which is opening web browser/chrome

Drake
15 Feb, 2023, 19:15

do you have to manually close it or it automatially redirects back to your app?

eroo36
15 Feb, 2023, 20:33

automatically closes the webview of google/apple oauth screen

eroo36
15 Feb, 2023, 20:37

but these have no issue only magiclink method has a problem

Drake
15 Feb, 2023, 21:00

Any errors in the console or network logs?

eroo36
15 Feb, 2023, 21:02

I will check those but this is what i can show rn

eroo36
15 Feb, 2023, 21:03

This from the email that was send with createMagicURLSession without url

Drake
15 Feb, 2023, 21:58

You might need to check on desktop opening the browser dev tools

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