firebase-authentication

I keep getting“java.lang.IllegalArgumentException: Given String is empty or null” and it has something to do with auth = FirebaseAuth.getInstance();"

半城伤御伤魂 提交于 2019-12-22 18:04:54
问题 I am making a simple app for user registration in firebase. I added two editText for getting email and password from user and button for sign up. I already added a class that extends Application for initialising default firebaseApp. All codes are added below. Help me to sort this error. MainActivity.java public class MainActivity extends AppCompatActivity implements View.OnClickListener { EditText ed_email, ed_pass; Button but_signup; ProgressBar progressBar; FirebaseAuth auth; @Override

Firebase sharing data with other users

北城以北 提交于 2019-12-22 17:51:06
问题 I want to create item lists using Firebase that can be created by a user and then he can specify other users to share the list with (so they can also modify its contents). I plan to do this by using the following structure: So the user section specifies the lists that a user has. Then the node 'lists', all lists created have a unique id and for each list its members are specified: In this example, Rick is the admin of the list and Tom just a member. Now I want the rules to, for example, only

Firebase Auth with Firefox Web Extension Add On

和自甴很熟 提交于 2019-12-22 17:16:10
问题 I am creating a web extension both for chrome and firefox. I have integrated firebase UI and firebase auth. Google authentication works well on chrome extension. But on firefox extension/add-on it gives me the following error. This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled. I tried couple of things, but none worked. Tried adding moz-extension:/

Firebase authentication: linking multiple accounts in Swift

自作多情 提交于 2019-12-22 15:26:54
问题 I've set up Firebase authentication for my iOS app using Facebook, Google & email/password sign in and it's all working fine. This authentication only happens when the user wants to access high-priority parts of my app (i.e. I don't require users to sign in to start using the app). On app start up, I sign users in anonymously in the background and that's working fine too. I've read the documentation but I'm struggling to understand the code required to enable me to link an anonymous account

Firebase authentication: linking multiple accounts in Swift

南楼画角 提交于 2019-12-22 15:24:01
问题 I've set up Firebase authentication for my iOS app using Facebook, Google & email/password sign in and it's all working fine. This authentication only happens when the user wants to access high-priority parts of my app (i.e. I don't require users to sign in to start using the app). On app start up, I sign users in anonymously in the background and that's working fine too. I've read the documentation but I'm struggling to understand the code required to enable me to link an anonymous account

How to get the current user id from Firebase in Flutter

落爺英雄遲暮 提交于 2019-12-22 14:42:25
问题 I am trying this - final Future<FirebaseUser> user = auth.currentUser(); but the problem is that instead of making a document by the "userid" it is making a document by the name of - Instance of 'Future<FirebaseUser>' This is literally my documents name right now, but I want to make it the userid specifically. What should I do? 回答1: uid is a property of FirebaseUser object. Since auth.currentUser() return a future, you have to await in order to get the user object like this: void inputData()

Get Twitter profile url from Firebase OAuth

风格不统一 提交于 2019-12-22 13:56:58
问题 Hello i want to get a profile Url from the Firebase OAuth response, currently firebase give this about the profile : displayName, email, photoURL, uid Have you any idea if its possible ? (I work with a serverless project) 回答1: You will get additional user info when the sign in attempt resolves: firebase.auth().signInWithPopup(new firebase.auth.TwitterAuthProvider()) .then(function(userCredential) { // All additional user info is available here. console.log(userCredential.additionalUserInfo

OAuth SignIn Cordova Firebase

妖精的绣舞 提交于 2019-12-22 11:28:52
问题 I tried to use OAuth SignIn Cordova Firebase in a hybrid cordova app following the steps from this firebase tutorial: Authenticate Using OAuth Providers with Cordova But I did not succeed and get the error message below: Error: {"code":"auth/operation-not-supported-in-this-environment","message":"This operation is not supported in the environment this application is running on. \"location.protocol\" must be http, https or chrome-extension and web storage must be enabled."} 回答1: I found the

Firebase authentication with custom token

隐身守侯 提交于 2019-12-22 10:53:29
问题 I have a firebase project which Im trying to authenticate from my rails server creating a custom token with the library ruby-jwt as it says on the docs, but i keep getting the same error: auth/invalid-custom-token, The custom token format is incorrect. Please check the documentation. The credentials.json is from the service account I made in google console, uid is sent from the front end to the api. def generate_auth_token(uid) now_seconds = Time.now.to_i credentials = JSON.parse(File.read(

Does deleting account from Firebase automatically logs user out?

五迷三道 提交于 2019-12-22 10:06:15
问题 I would like to know, does deleting account from Firebase automatically logs user out? I mean, if I want to show him after deleting the login screen, then I just have to present that VC? I am asking this because if I do like this, it crashes and I think it is because the user doesn't exists anymore at this points. Am I right? The code with some explenations : let user = FIRAuth.auth()?.currentUser user?.deleteWithCompletion { error in if let error = error { // An error happened. } else { try!