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
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...