i am new to appwrite and i am using flutter from a long time now so i wanted to do authentication and on first page uses have to enter FullName and email and then i will send them magicurl on their email and when they are verified then they will be routed to a page when they sets username and password. there is not much stuff about it online idk what to do anymore
Using magic URL authentication creates an account and session. Then, you can use the update password API to set a password
can you please elaborate
Which part? What do you need clarification on?
i have created this in my auth_api -
Future<Token> createmagic( { required String email } ) async { try { final user = await account.createMagicURLSession( userId: ID.unique(), email: email); return user; } finally { notifyListeners(); } }
and i am calling it on the 'send link' button of my sign up page
what after that? do i have to use updatemaggicurlsession?
Well, supposedly appwrite handles that: https://dev.to/appwrite/magic-url-authentication-with-flutter-appwrite-349g But in my experience didn't worked
No it doesn't work. We need to update the docs
You need to provide a url that will be in the email sent to the user. The link should send the user back to your app so you can finish the flow with the update call.
See https://discord.com/channels/564160730845151244/1105435044740349993
And why not updating instead appwrite? š
The problem is getting the session in the app requires extra steps
Recommended threads
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support š I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...