Back

Magic URL

  • 0
  • Flutter
  • Apple
alex2341355
25 Sep, 2023, 08:36

How do I use mgic url in iOS? I can’t create the email that is sent to the user myself. and i cant create uapple-app-site-association

TL;DR
The user is asking for instructions on how to use magic link authentication with Appwrite. They are specifically asking about hosting the apple-app-site-association file and implementing deep linking. They are also unsure of how to use magic URL in iOS and how to create the email that is sent to the user. Solution: Deep linking is not specific to Appwrite, so you can find general instructions online. Hosting the apple-app-site-association file is necessary, and it tells the mobile browser which iOS app to open. Implement deep linking to extract the secret and finish the authentication flow. To use magic URL in iOS, you cannot create the email yourself
Drake
28 Sep, 2023, 00:24

You need to implement deep linking so that the URL in the email will link into the app where you can extract the secret and finish the flow

alex2341355
12 Oct, 2023, 16:45

cant understand. what about this 3. Hosting apple-app-site-association file You need to host an apple-app-site-association file in the web domain. This file tells the mobile browser which iOS application to open instead of the browser. To create the file, get the app ID of the Flutter app you created in the previous step.

alex2341355
12 Oct, 2023, 16:47

There are no good instructions on the Internet how i can use Appwrite magic link

darShan
12 Oct, 2023, 17:26

apple-app-site-association isn't an explicit requirement but can be useful. All you need to do is use deep-linking for Magic Url Auth.

Request session via magic link, user receives the link, user clicks it, a site url opens, here you should use deeplink so that when the page opens, it tries to pass the userId, secret to your app via deeplink.

Process the userId & secret to create a session.

Drake
12 Oct, 2023, 18:30

Deep linking is not an appwrite specific thing. Whatever you find online should be applicable.

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