firebase-authentication

Xcode 11 Firebase auth for Mac app has error An error occurred when accessing the keychain

雨燕双飞 提交于 2021-01-28 09:14:24
问题 I am turning iOS app to Mac app, when I run Xcode for My Mac , I was trying to login my app on Mac, when I press button login, below Error shows: An error occurred when accessing the keychain. The @c NSLocalizedFailureReasonErrorKey field in the @c NSError.userInfo dictionary will contain more information about the error encountered MacOS: 10.15.1 Xcode: 11.2.1 It works totally fine on iPhone simulator or real iPhone, it only occurs when I try to run on Mac I think this is a issue that

Firebase signout is not leading to the correct activity

可紊 提交于 2021-01-28 09:00:55
问题 I tried to integrate an AlertDialog into my app via which the customer can log out. When I call up the dialog, it just works as it should be. However, if I press "log out" Iam not forwarded to the LoginActivity as requested. Instead, my dialog simply closes and the HomeActivity is reloaded. What am I doing wrong here? Greetings and thanks! private void signOut() { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("Signout") .setMessage("Do you really want to sign

Firebase signout is not leading to the correct activity

烈酒焚心 提交于 2021-01-28 08:44:17
问题 I tried to integrate an AlertDialog into my app via which the customer can log out. When I call up the dialog, it just works as it should be. However, if I press "log out" Iam not forwarded to the LoginActivity as requested. Instead, my dialog simply closes and the HomeActivity is reloaded. What am I doing wrong here? Greetings and thanks! private void signOut() { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("Signout") .setMessage("Do you really want to sign

Unable to get firebase current user in kotlin

时光总嘲笑我的痴心妄想 提交于 2021-01-28 07:50:43
问题 I am integrating FirebaseAuth into an Android app that I am building. I have successfully integrated firebase into the app by adding the SDK, downloading and adding the google-services.json file. The problem occurs when I try to Sign Up a new user. The user gets added to firebase console but I cannot retrieve the signed in user to update the name. This is the code from the fragment I am using it in. requireActivity().let { val user = authenticationService.signUpWithEmailAndPassword(email,

How to not let the user signup if the email isn’t verified

两盒软妹~` 提交于 2021-01-28 07:30:13
问题 I have made a basic app that lets users to signup and login. Here is the code to let the user sign up and it adds the user to the database. Once the user clicks(taps) on the signup button, an 'email verification' email will be sent to them. var verificationTimer = Timer() @objc func signupButtonPressed() { // Check that the text fields aren't empty if name.text!.isEmpty || email.text!.isEmpty || password.text!.isEmpty || countryTextField.text!.isEmpty { let emptyFieldAlert = UIAlertController

How to avoid Firebase warning that I’m using the development build?

醉酒当歌 提交于 2021-01-28 06:42:15
问题 I'm making a login page for my ReactJS app using the firebase auth package. I have imported the auth package in my global firebase file: import firebase from 'firebase/app'; import 'firebase/firestore'; import 'firebase/auth'; const config = { apiKey: "xxx", authDomain: "xxx", databaseURL: "xxx", projectId: "xxx", storageBucket: "xxx", messagingSenderId: "xxx" }; export default firebase.initializeApp(config); Now in my LoginComponent I need to access the class FacebookAuthProvider which is

Firebase JavaScript SDK - Retrieve Users IP Address

痴心易碎 提交于 2021-01-28 05:41:35
问题 Assuming my browser script automatically signs any user in anonymously, is it possible to collect the users public IP address? I found the firebase.auth().currentUser.metadata property but it only includes LastSignInTime and creationTime . Is the users public IP address available via the Firebase authentication (or any part of the Firebase JavaScript API) system? 回答1: Firebase Authentication does not expose IP address as part of the user record, nor is it exposed anywhere in the client side

Auth with multiple firebase realtime databases on web not working

◇◆丶佛笑我妖孽 提交于 2021-01-28 05:26:17
问题 I have two Firebase realtime databases. I have managed to connect, read, and write to both of them from my web-based client. However, I am going back through my security rules and made it so you can only read/write if you are authenticated using "rules": { ".read": "auth.uid != null" , ".write": "auth.uid != null" } However, for some reason I am now unable to connect to the database, it says that permission is denied. I am authenticated on the client using Google, and everything else with

Pass user auth to Firestore from Cloud functions

ぃ、小莉子 提交于 2021-01-28 00:23:01
问题 So I'm trying to build an http endpoint using a Cloud function. This cloud function is only invoked after the user signs in. So I can pass the user token and verify it on the server side. I understand how to do this. I also have security rules on my Firestore collections with authorization rules set up using request.auth.uid. This also just works if I use the firebase web sdk. But my question is - how do I use the same authorization rules via cloud functions? I don't want to rewrite my auth

FirebaseAuth - Let user change password using any provider - Android

喜夏-厌秋 提交于 2021-01-27 22:27:38
问题 I have a social media app, I'm using FirebaseUI to let users sign in/up to the app,using Email, Google or Facebook. How can I let user to change his/her password later if using "Email" as a provider? If using Facebook or Google as providers can I let him/her set Email-Password as Authentication Method by giving him/her an option to change password?. The change password action from user should set Email-Password as Authentication Method in firebase with a new password input from the user. Then