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
- [SOLVED] Appwrite Cloud and FRA cloud se...
Can anyone estimate how long this will take to resolve? I am checking status here https://status.appwrite.online/
- How to use Operator.arrayAppend on a rel...
Hi, is it possible to use any operator on a relationship column? I have a One to Many relationship column on a table and I would like to add entries to the colu...
- Update user email using OTP
Hi, I am trying to implement email update using OTP, there is not password associated with the account. One solution I found online is creating appwrite functio...