You MUST have dealt with these issues and be ready to discuss this with our developers.
We Have a site the authentication needs to be reviewed and updated for our requirements. We have 2 challenges:
Scenario 1: UID Table not properly populated
We are managing authentication with firebase's onAuthStateChanged function which is triggered whenever there is a change in authentication. This is used to handle sign in, loading session from application data and sign up. So when the user is signed up, the event triggers. Since this event is also user for sign in, it checks if the email is verified, if not, it display a message to verify and logs out the acct out. When that happens the user data is impacted
Scenario 2: “Random User” still logged in to site after signing out
Now for the random user issue, the data is loaded from the saved session based on the application data and localstorage. The uid from the localstorage gets wiped, but the session is saved. Since localstorage uid is used to get the data, we are unable to get the data from realtimeDB, hence the default values (firstname: Random, lastname: User, email: email@[login to view URL] etc.). Technically the user is authenticated (the session is saved), hence the user can still see the site data. We need to implement session storage only.
Be ready to talk about these issues and how you can solve them.
14 freelancers are bidding on average $505 for this job
Hi there, We've understood the issues and we ARE ready to discuss these scenarios and solution with your developers. Let us know when you guys are ready. Thank you!
Dear client, I am an expert of Firebase Authentication. I will do my best for your project. I look forward to hearing from you as soon as possible. Warm Regards, Oleksandr