Delocy / StudyPals

1 stars 0 forks source link

[Login] - User login issues #69

Open briannoelkesuma opened 1 year ago

briannoelkesuma commented 1 year ago

if i create new account and login back to my other account, login details (email) of my new account will be exposed in the profile screen.

GautamKrishnan commented 1 year ago

A simple trick would be to clear auth state on clicking login button and then triggering the firestore login part.

The issue is because your previous state is retained and the fraction of sec it takes to replace it with the new state you can view the old state details.

GautamKrishnan commented 1 year ago

https://rnfirebase.io/auth/usage#listening-to-authentication-state try using this to reset anywhere you have used auth flow