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.
1st I login with [email protected] and created user profile after show correct data thereafter logout and again login with [email protected] show correct data but I logout [email protected] and login with [email protected] create user profile after too show correct data and logout again and log again with [email protected] show correct data but problem is I log out peramuna22sajith2022@gmail and log with [email protected] showed about [email protected] data. That is the problem
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