Skip to content
Back

Email and SMS OTP sign-up and login flow

  • 0
  • Flutter
  • Auth
  • Cloud
CanCinar
7 Mar, 2025, 10:27

Hi all! Maybe a noob question 🙂 Trying to build a topic focused social media app with flutter, riverpod and appwrite. I am trying to stay away from email/password auth combo for now and only let users sign up and login via an OTP, through the createSession function. The sign up and verification works (both for email and phone) but when I try to log users in who already has an account, there's probably a conflict happening with the email and newly generated userId. What am I missing here? How can I check whether that email is already tied to an account? Should I create a document or is it possible to do this natively in the Auth/Account library? Thanks a lot in advance!!! //Can

TL;DR
Developers want to enable OTP sign-up and login using Flutter, Riverpod, and Appwrite for a social media app. The issue arises when attempting to log in users who already have accounts due to conflicts with emails and user IDs. To resolve this, developers can check if an email is already linked to an account within the Auth/Account library before proceeding with user authentication.
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