firebase-authentication

Login through Facebook using OAuth issue with Firebase (App_id in the input_token did not match the Viewing App)

橙三吉。 提交于 2020-03-24 20:21:30
问题 I am trying to login through Facebook, collect some data over OAuth and then login to Firebase using the credential. I am however encountering an issue (please see logs below). CODE EXAMPLE @objc func signInWFB() { let fbLoginManager : FBSDKLoginManager = FBSDKLoginManager() fbLoginManager.logIn(withReadPermissions: ["email","user_birthday","user_gender"], from: self) { (result, error) -> Void in if (error == nil) { let fbloginresult : FBSDKLoginManagerLoginResult = result! if (result?

Login through Facebook using OAuth issue with Firebase (App_id in the input_token did not match the Viewing App)

丶灬走出姿态 提交于 2020-03-24 20:19:13
问题 I am trying to login through Facebook, collect some data over OAuth and then login to Firebase using the credential. I am however encountering an issue (please see logs below). CODE EXAMPLE @objc func signInWFB() { let fbLoginManager : FBSDKLoginManager = FBSDKLoginManager() fbLoginManager.logIn(withReadPermissions: ["email","user_birthday","user_gender"], from: self) { (result, error) -> Void in if (error == nil) { let fbloginresult : FBSDKLoginManagerLoginResult = result! if (result?

Login through Facebook using OAuth issue with Firebase (App_id in the input_token did not match the Viewing App)

对着背影说爱祢 提交于 2020-03-24 20:18:54
问题 I am trying to login through Facebook, collect some data over OAuth and then login to Firebase using the credential. I am however encountering an issue (please see logs below). CODE EXAMPLE @objc func signInWFB() { let fbLoginManager : FBSDKLoginManager = FBSDKLoginManager() fbLoginManager.logIn(withReadPermissions: ["email","user_birthday","user_gender"], from: self) { (result, error) -> Void in if (error == nil) { let fbloginresult : FBSDKLoginManagerLoginResult = result! if (result?

How do I lock down Firebase Database to any user from a specific (email) domain?

半城伤御伤魂 提交于 2020-03-24 00:04:51
问题 I have a small, personal Firebase webapp that uses Firebase Database. I want to secure (lock down) this app to any user from a single, specific domain. I want to authenticate with Google. I'm not clear how to configure the rules to say "only users from a single, specific domain (say @foobar.com ) can read and write to this database". (Part of the issue that I see: it's hard to bootstrap a Database with enough info to make this use case work. I need to know the user's email at the time of

How do I lock down Firebase Database to any user from a specific (email) domain?

。_饼干妹妹 提交于 2020-03-24 00:04:17
问题 I have a small, personal Firebase webapp that uses Firebase Database. I want to secure (lock down) this app to any user from a single, specific domain. I want to authenticate with Google. I'm not clear how to configure the rules to say "only users from a single, specific domain (say @foobar.com ) can read and write to this database". (Part of the issue that I see: it's hard to bootstrap a Database with enough info to make this use case work. I need to know the user's email at the time of

Is there a way to keep the user signed in between native code and a WebView using Firebase Auth on Android?

℡╲_俬逩灬. 提交于 2020-03-22 09:14:10
问题 I am interested in building native and WebView based Android screens. I would like to keep the user signed in when navigating from a native to WebView screen. But I don't know how to achieve this. 来源: https://stackoverflow.com/questions/57320188/is-there-a-way-to-keep-the-user-signed-in-between-native-code-and-a-webview-usin

How can I list all users using firebase admin sdk

偶尔善良 提交于 2020-03-21 07:23:10
问题 Is there a way to list all the users using the firebase admin sdk? Documentation only shows getting one user either by uid or email. 回答1: Update As @Webp says in their answer, there is now an API to list all users in the Admin SDK. Original answer: There is no public API to retrieve a list of users from the Firebase Admin SDK. The typical way to deal with this scenario is to keep a list of the pertinent user information in the Firebase Database. See this original question for more: How do I

Getting 'Uncaught' after catching error in firebase.auth() with async

放肆的年华 提交于 2020-03-19 05:16:34
问题 async login({ commit }, { email, password }) { let result try { result = await firebase.auth().signInWithEmailAndPassword(email, password) commit('setUser', result.user) } catch (err) { commit('setError', err) } } This is an action in Vuex. When this runs, I expect the commit('seteError', err) to be a valid error handler for the error returned from catch (err) . Instead, I get an 'Uncaught' exception and execution stops. Would appreciate any insights from anyone who managed to use async with

Getting 'Uncaught' after catching error in firebase.auth() with async

天大地大妈咪最大 提交于 2020-03-19 05:14:11
问题 async login({ commit }, { email, password }) { let result try { result = await firebase.auth().signInWithEmailAndPassword(email, password) commit('setUser', result.user) } catch (err) { commit('setError', err) } } This is an action in Vuex. When this runs, I expect the commit('seteError', err) to be a valid error handler for the error returned from catch (err) . Instead, I get an 'Uncaught' exception and execution stops. Would appreciate any insights from anyone who managed to use async with

“Browser or app may not be secure. Try using a different browser.” error with Flutter Firebase Google Login

杀马特。学长 韩版系。学妹 提交于 2020-03-18 11:54:10
问题 I am using flutter web and firebase authentication to build a web app. For that 1. Created Firebase app with Google signin as one of the sign in methods. 2. Added the dependencies as given in https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_auth/firebase_auth/example and https://dart-pub.mirrors.sjtug.sjtu.edu.cn/packages/firebase_auth_web. When I try to login, the Google sign-in window appears. Once I enter the email address and press enter, it gives the