firebase-authentication

Angular Firebase signInWithPhoneNumber

不打扰是莪最后的温柔 提交于 2019-12-10 13:36:44
问题 I am new on the site, so if I make a mistake, please correct me (I will fix it) and forgive me. I am also new using Angular 4 environment. Firebase has an new option for: signInWithPhoneNumber, and I want to implement it on my new app. This method need the parameter: signInWithPhoneNumber(phoneNumber, appVerifier). Getting the phoneNumber is easy, using the form, but getting the appVerifier is making me crazy. I dont understand the concept of appVerifier. I installed the component: https:/

Firebase UI Auth Provider iOS Swift Example

强颜欢笑 提交于 2019-12-10 13:36:10
问题 I am starting a new iOS Swift application and want to use FirebaseUI Auth. Here is the link to the docs where it talks about it under Drop-in authentication solution Firebase Auth. The FirebaseUI Auth for Android was very simple and easy. It appears that the iOS examples are out of date as there API seems to have changed drastically between versions. It looks like they are on version 3.1. The directions are also a little bare: https://github.com/firebase/FirebaseUI-iOS Can someone please help

Error: Uncaught (in promise): TypeError: Cannot set property 'isAdmin' of null

帅比萌擦擦* 提交于 2019-12-10 13:35:31
问题 firebase.auth().onAuthStateChanged((user) => { if(user) { this.isLoggedIn = true; //Set user loggedIn is true; this.isAdmin = false; firebase.database().ref('/userProfile/' + user.uid).once('value').then(function(snapshot) { let userInfo = snapshot.val(); if(userInfo.isAdmin == true) { //ERROR AT THIS LINE: //Error: Uncaught (in promise): TypeError: Cannot set property 'isAdmin' of null this.isAdmin = true; console.log(userInfo); } }); } else { this.isLoggedIn = false; //Set user loggedIn is

Library not found for -lGTMSessionFetcher

为君一笑 提交于 2019-12-10 13:18:55
问题 Unity 5.6.2, Firebase Unity SDK 4.0.3, Cocoapod 1.3.1 I added Firebase Auth package to Unity Project and Android works fine. But when I run the same project on iOs, build in Unity runs fine, but fails in XCode during compilation ld: library not found for -lGTMSessionFetcher clang: error: linker command failed with exit code 1 Any ideas how to fix it? I've tried to add Firebase Auth form Unity SDK 4.1.0, but Unity started to fail due to: iOS framework addition failed due to a Cocoapods

TypeError: Cannot read property 'uid' of null

∥☆過路亽.° 提交于 2019-12-10 12:56:11
问题 I am trying to log in with a phone number in my app with firebase but I am facing issue with the login process. I'm not able to login with a phone number in firebase but if I register with a phone number and redirect to the homepage it's working properly. I am using the same method to login, but I got the issue like TypeError: Cannot read property 'uid' of null but I an successfully getting all the console values. I don't know what is being the issue here. But that error is displaying in 3

Storing user data example - display name not showing in database

跟風遠走 提交于 2019-12-10 12:29:15
问题 A bit confused why there's no display name being displayed in my Firebase database, I've followed the steps in the example on their website and didn't get the expected result which they showed. Here's the example code. final Firebase ref = new Firebase("https://<YOUR-FIREBASE-APP>.firebaseio.com"); ref.authWithPassword("jenny@example.com", "correcthorsebatterystaple", new Firebase.AuthResultHandler() { @Override public void onAuthenticated(AuthData authData) { // Authentication just completed

How to log out user from app when I delete his account on firebase?

一世执手 提交于 2019-12-10 12:26:11
问题 When I delete an account on my Firebase console, the user stills logged in to my app, I use this code to keep the user logged. How can I log out the user when I delete his account? override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(true) //check if user is logged in if FIRAuth.auth()?.currentUser != nil { //if user if logged in let vc = self.storyboard?.instantiateViewController(withIdentifier: "mainVC") self.present(vc!, animated: false, completion: nil) } } But I don't know

How should I create a new Federated Identity Provider for Firebase Authentication

前提是你 提交于 2019-12-10 12:18:58
问题 I would like to integrate PayPal signin into an android app so to authenticate the client to the Firebase Database. I've managed to create a custom funtion on the node.js server that creates tokens from the provided uid, in order to use "signin withcustomtoken" function in the client application. Should I send the uid to the nodejs server through https in order to get the token? Is there a better way? 回答1: Don't create an HTTP endpoint that accepts a uid and returns a custom token. This is a

This version of firebase_auth will break your Android build if it or its dependencies aren't compatible with AndroidX

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 12:16:11
问题 I am trying to build an apk to update my app on the android app store. It is worth noting here that every plugin version that I use is absolutely identical to the version that is already on the store, and so has already previously built an apk with no issues at all. [ +1 ms] ********************************************************* [ ] WARNING: This version of firebase_auth will break your Android build if it or its dependencies aren't compatible with AndroidX. [ +1 ms] See https ://goo.gl

Firebase how to know specific client is offline?

混江龙づ霸主 提交于 2019-12-10 12:15:22
问题 I am developing a device/product using raspberry pi and Firebase... System flows like this: user buys device on my website and she can use same credentials to login mobile app. Currently, I am relying on an some how generated uniuqe id put by me in to device to interact to db from device and device to Firebase Realtime Database... Now I need to know if device is online or offline. Answers should be on possibble two solutions. Because I want to notify user: "Your device is offline"... 1- on