
Hi everyone,
I'm running a self-hosted Appwrite instance and using it in a Flutter app for iOS. I’m implementing email OTP authentication with the following code:
await _account.createEmailToken( userId: userId, email: email, );
The issue I'm facing is that in the OTP email, it says that the login attempt happened from a browser. Also, when checking the user’s sessions in Appwrite, the session is always recorded as:
BROWSER AND DEVICE: "Mobile Safari on iOS 18.2"
This is misleading since the request originates from my Flutter app on iOS, not from a browser. Is there a way to make Appwrite recognize this as a mobile app session instead? Any insights or workarounds would be greatly appreciated!
Thanks!

Any chance you can inspect the network request made by the SDK?

And look at the user agent header?
Recommended threads
- Error getting session: AppwriteException...
I get this error `Error getting session: AppwriteException: User (role: guests) missing scope (account)` when running in prod. As soon as I try running my app o...
- Unable to View / Edit Bucket Files
Hi! I am unable to view / edit Bucket Files. While Previews work just fine, clicking the actual file to view or edit it produces the errors seen in the attache...
- How to remove the Sign up link after cre...
Greetings, i just installed appwrite on a VPS and created an account but now i do not want others to have access to the sign-up page. Is there any way to hide o...
