I have read all the questions people have posted before me and this is what i have tired
onPressed: () async {
final account = Account(client);
try {
await account.createMagicURLSession(
email: _emailController.text,
);
} on AppwriteException catch(e) {
print(e.message);
// display error to the user
}
}```
if you dont pass a url the email you receive will have https://cloud.appwrite.io/auth/magic-url? with userId and secret.
okey so this was the AndroidManifest.xml file
no luck did not even open the android app
okey now i have tired the custom domain option. i added the custom domain to appwrite console /settings/domains and as well added a platform with same custom domain or it doesnt work. and passed it as a url ,i was still not able to open app with link
onPressed: () async {
final account = Account(client);
try {
await account.createMagicURLSession(
email: _emailController.text,
url:'appwrite-auth-callback-auth-[projectIDexample]://subdomain.Domain
.com/magic_url_session',
);
} on AppwriteException catch(e) {
print(e.message);
// display error to the user
}
}
subdomain.Domain.com is the custom domain you added
i even updated the AndroidManifest.xml
<data android:scheme="appwrite-auth-callback-auth-[projectIDexample]:" android:host="subdomain.Domain
.com" android:pathPrefix="/magic_url_session" />
Recommended threads
- Getting payload is too large response fr...
I'm encountering a 412 "Payload Too Large" error while trying to upload a 100MB file via Appwrite function to an external storage service api. Could you suggest...
- I do SSR auth. What's the best way to se...
I am currently handling authentication entirely server-side via an `/api/auth` endpoint, so I don't have any Appwrite client instances running client-side. Ho...
- Network Error on upload
am trying to upload files but am gettin ` Error uploading image [AppwriteException: Network request failed]` ```ts export const uploadDriver = async (file: Ima...