Skip to content
Back

Email OTP Login Shows as Browser Session Instead of Flutter App

  • 0
  • Self Hosted
  • Flutter
  • Auth
mobeit
13 Feb, 2025, 21:12

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!

TL;DR
Issue with email OTP login in Flutter app showing as browser session instead of mobile app in Appwrite. Developers asked to check user agent header and inspect network requests. Looking for solution to make Appwrite recognize sessions as mobile app, not browser.
Steven
13 Feb, 2025, 21:45

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

Steven
13 Feb, 2025, 21:45

And look at the user agent header?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more