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
- login With OAuth Failed
login With OAuth Failed: when i cliick to login with any of the following (facebook, gmail or apple) am being redirected out of the app to enter my detail, afte...
- Flutter OAuth2 webAuth Bug?
I created with flutter an app where I can login in with my Microsoft Account. When I compile it to Web (WASM) or Android (aab) then there is no problem what so ...
- Synchronous Function Execution Timed Out...
Hi Appwrite team 👋 I’m facing a synchronous function execution timeout issue on Appwrite Cloud and would appreciate some guidance. I executed this function u...