Back

[SOLVED] Magic URL in flutter mobile not creating a session after redirect.

  • 1
  • Flutter
  • Accounts
nithishjipmer
9 May, 2023, 10:04

createMagicURLSession ---> email recieved by the user ---> user redirected to the app when he clicks the link ---> but accounts.get() is throwing general_unauthorized_scope error.

But the same flow with google oAuth is working properly. Here when the user is redirected accounts.get() is returning the User.

TL;DR
The user was having an issue with the Magic URL flow in Flutter mobile. They were able to solve it by implementing deep links. The issue was that after redirecting to the app, the `accounts.get()` method was throwing a `general_unauthorized_scope` error. The user mentioned that the same flow with Google OAuth was working fine. No specific solution was provided in the thread.
Drake
9 May, 2023, 14:47
nithishjipmer
13 May, 2023, 15:23

Thank you guys. I ve successfully implemented it with deep links

Drake
13 May, 2023, 15:25

[SOLVED] Magic URL in flutter mobile not creating a session after redirect.

Drake
13 May, 2023, 19:27
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