Is there a way to get the id token from firebase 9 directly in the axios interceptor? It was possible with firebase 8. currentUser is null first because it is loaded async by firebase. How can I access it directly without always having the problem that the first time it crashes because the user is not loaded yet? Thank your
Tag: firebase-authentication
Firebase: authenticated and guest clients connecting to same Firestore Database
My use case is, I have a web app in which I listen to Firestore collections. One of the collections are for public users where anonymous auth is enough. And the second collection is for logged in users, so I implemented custom token auth following this. https://firebase.google.com/docs/auth/web/custom-auth. Once a user logs in, we start a Web Worker to initialise app
Some phone numbers do not receive otp sms message with Firebase phone auth
I am experiencing unpredictable behaviour when authenticating users with firebase phone Auth for web, with the javascript modular web api. These are my dependencies: “@firebase/auth”: “^0.19.11”, “firebase”: “^9.6.8”, I have tested approximately 20 real phone numbers and some test numbers and for most of the time it works fine. But for some it fails to send the OTP code, without
Can a Firebase error message template or Alert be customised to show custom Alerts?
I am working on a React App. The app has basic auth features. Here is the code below. The issue here is that i am trying to create a custom alert for a specific error that is “The Email ID Already Exists”. But Firebase has its own predefined error template defined for it. And when I replace with a custom
Firebase does not authenticate when using next auth
I’m using next-auth with firebase adapter. Everything is working fine in terms of saving users in database, but something is not working in terms of authentication. My users can log in, but are not authenticated. The Observer returns ‘no user’, but I’m logged in. Answer You’re not seeing a logged in user because the firebase auth is being done on
Validating Firebase Auth tokens manually
I’m trying to use cloudflare workers to perform authenticated actions. I’m using firebase for authentication and have access to the Access Tokens coming through but since firebase-admin uses nodejs modules it can’t work on the platform so i’m left manually validating the token. I’ve been attempting to authenticate with the Crypto API and finally got it to import the public
How to check current password when reset password in firebase and Expo? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 11 months ago. Improve this question I’m adding password reset function using react native expo and firebase api. First input is current password. Second input is
How to switch between emailLink and password sign-in method in firebase auth?
There are two methods a user can sign in via email: “emailLink” and “password” (see https://firebase.google.com/docs/auth/web/email-link-auth#differentiating_emailpassword_from_email_link) I want to give my users the option to switch between these two methods. However, I did not find any documentation to how I could unlink an email sign-in method (e.g. password). As far as I understood, you can only unlink a sign-in method
Re-render Header on Firebase Login
I’m having a problem getting my header to update after I log in with Firebase… When I refresh my browser it goes back to as if I am not logged in until I am redirected. I want to re-render my header when the user is detected as logged in after refresh. This is my current method of changing the header.
Givenname and Familyname claims are missing in firebase idtoken
I am trying to use Firebase to implement google login for our web application. here is what I have done to get the idtoken : Although I have added the profile scope still I can not get the givenname and familyname claims in the idtoken ( email , picture and name are avialable) (I have tried directly to use Google