
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
- Redirect URL sends HTTP instead of HTTPS...
I am not sure since when this issue is present, but my Google and Apple redirect URI are no longer pointing to the HTTPS redirect URI when I try to use OAuth. ...
- Failing to run document operations on sd...
Could someone point me in the right direction I'm going in cirlces. I have a problem with sdks and my self-hosted server in production (for ~3 years) I have bee...
- Functions fail to deploy after switching...
Hi <@1087889306208718959> , after switching my self-hosted Appwrite instance to use AWS S3 as the storage backend, my Cloud Functions stopped working. Iβm runni...
