I am using firebase admin sdk in my spring boot app. (API app) When I run locally in intelliJ its working fine. But when deployed in tomcat its giving me NPE. In Springboot application In API code ERROR: Can someone help in fixing this issue. Thank you in advance. Answer You shouldn’t create an instance of Firebase like this in
Tag: firebase-authentication
Firebase Authentication: Update Email
I am using firebase to register my users, users can update their data but when updating the email they always send me the task unsuccessful response, and I verified that when updating the email it is well written. This is the code: Already verify that at the time of the mail update it is taken from the edit text and
Data Retrieval from Firestore is erratic
I’m working on an Android app that does the following: Upon app start-up, it checks if a user is logged in, using AuthStateListener. If there is a user logged in, it retrieves data from Firestore. The user data is stored in a document that I named with the following nomenclature: “User ” + user’s_email_ID. For example, if a user has
How to get Firebase token of current user
I’m buildning an app where a logged in user can invite another user through pressing a button, so then the invited user will get a push notification. My idea is that if I can save the token for each user in the database, then when a user presses the “invite button” it will find that users token in the database
How do I log out of my Google Account in Firebase such when I log in again, I can choose the account I would like to sign in with?
This is my coding in my java class file where my log out button is located at. How do I log out of my Google Account in Firebase in android studio, such that when I log in again, I am allowed to …
Updating Firebase Authentication password using user.reauthenticate
To update a user’s password in Firebase Authentication you must re-authenticate : https://firebase.google.com/docs/reference/android/com/google/firebase/auth/FirebaseUser#reauthenticate(com.google.firebase.auth.AuthCredential) Yet this function does not seem to double check if the currentPassword is correct before actually re-authenticating. I believe this may be because Firebase does not require re-authentication until after a set period of time, and will bypass this if it is still within that timeframe. Here’s
Getting the current User information from Firebase Realtime Database
I developed a login app in Java where the user can login using their emailaddress and password. This works fine so far, but I have the problem that my UserModel.java is null when I get to my home activity. This also makes sense to me since Firebase Auth only checks the email and password and does not select the relevant
Where can I get “serviceAccountCredentials.json” for Firebase Admin?
Here is said what I need to set up Firebase on java: But where can I get serviceAccountCredentials.json ? UPDATED: I found that this file seems should have this fields, but where get this values? Answer Found details about this in this link [UPDATED 30.11.2021] To generate a private key file for your service account: In the Firebase console, open
Is it possible to validate a firebase token (JWT) from server (Java)
Browser Client – Uses Firebase to sign in and has the firebase userid, token in the local storage. When the browser calls the server – a REST API end point , the token is passed as a Request header. Now, the server is configured with a Firebase Secret. My question: is it possible to validate the firebase issued token at