Reputation: 185
I was curious about how firebase auth token works.
Then I found this answer saying that token is stored in local storage.
https://stackoverflow.com/a/62577638/7239472
However, when I checked local storage in Application tab of my Google Chrome inspector, there was nothing.
So from where does the Firebase Auth SDK get the token value?
I also checked that currentUser object contains token value but I'm not sure where that came from.
Upvotes: 6
Views: 6511
Reputation: 159
Firebase saves its connection-token on a storage called "indexedDB".
You can see it by doing: inspect->application->indexedDB then you will see a firebase "key-value table" called "firebaseLocalStorage".
Upvotes: 5
Reputation: 1281
Token can be found in firebaseLocalStorageDB. Please refer to this path.
Upvotes: 16