there is a web application built on Vue + Firebase. The question is how to automatically enter the application after the page is reloaded, how to later log in to your database, as far as I understand after authorization, all such data remains for example
fb.auth().onAuthStateChanged(user => {
console.log(user) // user profile
}
So I can get the user's email and uid, so firebase thinks I'm an authorized user, and allows me to edit and read data with rules:
".read": "auth != null",
".write": "auth != null"
However, on the Authentication tab, there is a field for each user "Last Login Date" and it is not updated until the "Normal" authorization by email password for example.
I'll repeat the question of how to authorize in my database after rebooting the page in the browser, is there any special method for this? Thank you in advance)