#MagicURL doesnt make the app logged in

6 messages · Page 1 of 1 (latest)

rough roost
#

I am able to create a magicURL and send it via email. After I click the email it redirects to my app but nothing happens. Should I handle it myself somehow? I couldnt find anything regarding to that in the documentation.

regal nova
#

Hi

#

What is your intended result?

rough roost
#

I want to log in my app using MagicURL. But I couldnt find anything on docs to how to handle the data comes from it. does the sdk handles it or should handle it myself?

regal nova
#

You need parse secret and user ID from the URL query params. Then put that into Appwrite SDK account.updateMagicURLSession(). With that finished, user is logged in.
Relevent docs:

Appwrite

Appwrite provides web and mobile developers with a set of easy-to-use and integrate REST APIs to manage their core backend needs.

rough roost
#

does appwrite have an example how to extract the secret and the userID from the URL query in flutter?