New ask Hacker News story: Ask HN: Is the Firebase Auth Secure?

Ask HN: Is the Firebase Auth Secure?
2 by WolfOliver | 0 comments on Hacker News.
According to the documentation, I can obtain the firebase "API" token via the following javascript (see [01]): FirebaseAuth.instance.currentUser().getIdToken(); It seems like the id token is used as access token/api key? As there are so many discussions that storing tokens in a palace reachable by JS is very insecure [02]. I'm wondering what I'm missing here. Also, I do not really understand why is it considered to be so much more insecure? As soon as malicious code has access to the JS, he can as well make the fetch requests from the users browsers, sending along all the required cookies. So, is it still valid not to use local storage for tokens? [01] https://ift.tt/QwLjP6q [02] https://ift.tt/GIPAf16

Comments

Popular posts from this blog

New ask Hacker News story: Brother Printers Sending Ink Data to Amazon?

New ask Hacker News story: Tell HN: Equifax free credit report dark patterns