tera_mx
tera_mx

Reputation: 185

Firebase Authentication: Where is the token stored in web?

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

Answers (2)

Ori.B
Ori.B

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

Codex
Codex

Reputation: 1281

Token can be found in firebaseLocalStorageDB. Please refer to this path.

enter image description here

Upvotes: 16

Related Questions