Back

[SOLVED] Login using magic url in web-sdk in mobile for capacitor

  • 0
  • Android
  • Accounts
  • Web
  • Apple
Ajit Singh
20 Jul, 2023, 04:08

I am using the websdk to login using magic url but I am using it in an android and ios app using capacitor can some one guide me how to setup the <application> in AndroidManifest.xml in that case and info.plist in ios case. Does appwrite sdk handle something that I need to know

this is how to do it in supabase https://supabase.com/blog/authentication-in-ionic-angular#magic-links-for-native-apps

TL;DR
The user wants to implement login using magic URLs in a mobile app using the Web SDK and Capacitor. They mention using deep links to redirect from their website to their mobile app. They successfully capture the URL via deep link and process it further. They seek guidance on setting up `<application>` in AndroidManifest.xml and info.plist for Android and iOS respectively. They also mention Supabase's approach to magic links for native apps.
Drake
20 Jul, 2023, 04:25

How about you do the same thing?

Drake
20 Jul, 2023, 04:26

Although, I think a custom url scheme isn't the best approach...deep link might be better

Ajit Singh
20 Jul, 2023, 04:42

So I capture the url via deeplink and process it further right

Drake
20 Jul, 2023, 05:06

yes. so the email will a URL. the user will tap and then it should link into your app. Then, you can grab the userId and secret from the query params to finish the magic url auth

Ajit Singh
20 Jul, 2023, 06:10

Thanks

Ajit Singh
20 Jul, 2023, 06:11

[SOLVED] Login using magic url in web-sdk in mobile for capacitor

Ajit Singh
20 Jul, 2023, 06:11

for your help

aaronksaunders
30 Jul, 2023, 01:59

@Ajit Singh curious how you solved it?

Ajit Singh
30 Jul, 2023, 05:04

I used deeplinks

Ajit Singh
30 Jul, 2023, 05:05

I added deeplinks to my website and redirect to my mobile app

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