This is my project bucket. I save all user in random ID.
User want to verify email with OTP to make his profile. if mail id is new to database, after user verify email open another Screen to fill user data and if mail id already in database open another screen home.
I did everything. 1st user login and logout and after login work perfect but user used another email and create profile it’s work fine. There after user log his 1st profile with email show wrong data. How to fix this.
I think the issue is that you are using an random number for the main bucket what you should do make email the main bucket to retrieve users all data so you won’t have to get data from Tiny DB