firebase-authentication

Firebase store user variables?

丶灬走出姿态 提交于 2019-12-14 01:56:58
问题 I am using Firebase for a beginner project of mine, and I am confused by the documentation that is provided. I have initialized an authentication form, and it's working. But I do not understand how to link it to the realtime database? I understand that (user) is the currently logged it user, but how do I store information on the current user? In my app, each user has a Balance(eg $100). How do I store the user's balance in their username, do I need to use the realtime databse? 回答1: Basically,

Is there any way to delete the user from the firebase authentication?

时光总嘲笑我的痴心妄想 提交于 2019-12-13 20:33:56
问题 I am using Firebase Auth Rest API. I have code written in PHP to add the user to the database and firebase authentication. The information I store is kind, idToken, email, refreshToken, expiresIn, localId. It all works great! Now when I am trying to delete the user from database it works fine but does not delete the user from the firebase authentication. Please find the code below for sign up and deleting the user. The errors I get is either CREDENTIALS_TOO_OLD_LOGIN_AGAIN (or) INVALID_ID

NodeJS and Firebase Redirect After Login - currentUser returns Null

≡放荡痞女 提交于 2019-12-13 20:23:58
问题 I am trying to embed my JS Firebase app with nodejs. As I am new with Nodejs. (Not Using Admin SDK) After loggedIN onAuthStateChanged() is returning null in server.js, but in app.js (Where login code is written) is printing the user details. Here is reference to related previous problem: Reference App.js code (That is printing user fine) firebase.auth().onAuthStateChanged(firebaseUser => { if (firebaseUser) { currentUserID = firebase.auth().currentUser.uid; localStorage.setItem("currentUserID

Firebase Authentication - Initializing Multiple Projects (FirebaseUiException: Code 10)

感情迁移 提交于 2019-12-13 20:22:50
问题 Expected Initialize multiple Firebase projects for the Coinverse Android app to allow users to download the open sourced GitHub project as outlined in this StackOverflow answer. Allow users to setup their own Firebase project for authentication Run the open build variant of the app and login with Firebase AuthUI Enable a second pre-set Firebase project for shared Firestore and Cloud Functions Observed Auth for one Firebase projects works, throws error below when initializing a second project

Firebase email authentication with rules not working as expected

风格不统一 提交于 2019-12-13 18:29:47
问题 In the management screen I have both email auth and anonymous login enabled. The data has only one node - Hello: "World" The rule that I have is { "rules": { ".read": "auth != null", //".read": true, ".write": true } } If the user is NOT logged in with the above rule then you get The read failed: Permission denied That's all good. If a anonymous user is logged in then I can see the value "{Hello=World"} Works so far. If i log in with a email user the I get an error :FirebaseError: Permission

Value of type 'AuthDataResult' has no member 'providerID' Firebase 5.0

不问归期 提交于 2019-12-13 18:22:16
问题 I have a problem with the newest version of FirebaseAuth 5.0 this is my code: func registerUser (withEmail email: String, andPassword password: String, userCreationComplete: @escaping (_ status: Bool, _ error: Error?) -> ()){ Auth.auth().createUser(withEmail: email, password: password) { (user, error) in guard let user = user else{ userCreationComplete(false, error) return } let userData = ["provider": user.providerID, "email": user.email] DataService.instance.createDBUser(uid: user.uid,

Cloud Endpoints with Firebase Authentication

拈花ヽ惹草 提交于 2019-12-13 17:41:13
问题 What I am trying to accomplish is I want to limit the use of the web service running on Google App Engine to my app users that login with Firebase Auth. How can I add security rules to the openAPI specification to allow users to request only information of their uuid? So users will just be able to use the web service to get the information about their uuids, if they are logged in to Firebase Auth with that uuid 回答1: You'd have to pass along the ID token of your user from the client app to

Migrating web api authentication from .NET Core 1.1 to 2.0

风流意气都作罢 提交于 2019-12-13 17:27:22
问题 I'm trying to convert my old authentication to .NET 2.0. I had the following code: app.UseJwtBearerAuthentication(new JwtBearerOptions { AutomaticAuthenticate = true, IncludeErrorDetails = true, Authority = "https://securetoken.google.com/xxxxx", TokenValidationParameters = new TokenValidationParameters { ValidateIssuer = true, ValidIssuer = "https://securetoken.google.com/xxxxxx", ValidateAudience = true, ValidAudience = "xxxx", ValidateLifetime = true, }, }); My new code is the following:

MISSING_CLIENT_IDENTIFIER,while trying to do PhoneAuth in Android

倖福魔咒の 提交于 2019-12-13 17:21:45
问题 I've been trying to do a Phone Authentication Method using Firebase Auth, I've made sure that all the steps are followed, adding my package name,adding SHA Key using keytool -list -v -keystore "%USERPROFILE%.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android and then adding all the dependencies and also including the json file into my project Now I'm sending my Phone number in a +CountryCodeXXXXX format and for some reason, it gives me a MISSING_CLIENT

Custom Firebase user identity not using the Firebase user uid

两盒软妹~` 提交于 2019-12-13 17:18:19
问题 I´m playing around with the FirebaseUI-Android and have a question about what ID to use when uniquely identify users. The FirebaseUI managed the authentication right and return the IdpResponse object. This can be e.g. Facebook, Twitter, Phone and more.. This is grate thanks everyone behind this. Because the FirebaseUser.getUid() can change when user delete/recreate his account therefore i don't want to link my users data with the FirebaseUser.getUid() token. In the future if I decide to let