firebase-authentication

How to observe firebase.auth().currentUser.displayName and other attributes for changes?

ⅰ亾dé卋堺 提交于 2019-12-19 21:45:06
问题 I am using firebase auth and when users change their profile, such as their displayName , photoURL , or email etc. the onAuthStateChanged callback won't be fired, but the underlying firebase.auth().currentUser gets updated automatically. I need to update the UI after the user updates their profile, ie. I would like to keep firebase.auth().currentUser in sync with the client store (specifically vuex or redux -like store). Is there a way to observe firebase.auth().currentUser for changes, or

FirebaseAuth: getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@489

≡放荡痞女 提交于 2019-12-19 19:52:25
问题 When I am trying to phone authntication I am getting below error. W/BiChannelGoogleApi(12340): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@489 I have checked the same error in Stackverflow and other places but not getting proper solution anywhere. chnages in pubspec.yml dependencies: flutter: sdk: flutter # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino

How to use Firebase invisible reCAPTCHA for angular web app?

守給你的承諾、 提交于 2019-12-19 18:58:43
问题 Hoping to see a working example. Searched quite a bit, can't seem to get it working locally. Always shows privacy terms logo & user has to interact with captcha. Here is a codepen I've created to speed things up. From the Firebase-Docs: Use invisible reCAPTCHA To use an invisible reCAPTCHA, create a RecaptchaVerifier object with the size parameter set to invisible, specifying the ID of the button that submits your sign-in form. window.recaptchaVerifier = new firebase.auth.RecaptchaVerifier(

How to use Firebase invisible reCAPTCHA for angular web app?

风格不统一 提交于 2019-12-19 18:58:00
问题 Hoping to see a working example. Searched quite a bit, can't seem to get it working locally. Always shows privacy terms logo & user has to interact with captcha. Here is a codepen I've created to speed things up. From the Firebase-Docs: Use invisible reCAPTCHA To use an invisible reCAPTCHA, create a RecaptchaVerifier object with the size parameter set to invisible, specifying the ID of the button that submits your sign-in form. window.recaptchaVerifier = new firebase.auth.RecaptchaVerifier(

AngularJS error: TypeError: v2.login is not a function

笑着哭i 提交于 2019-12-19 12:24:48
问题 I would like to call the login function when I click the login button but keep getting the error message in the title. Can someone point out the error in my script? login.js code below: /*global Firebase, angular, console*/ 'use strict'; // Create a new app with the AngularFire module var app = angular.module("runsheetApp"); app.controller("AuthCtrl", function ($scope, $firebaseAuth) { var ref = new Firebase("https://xxxxx.firebaseio.com"); function login() { ref.authWithPassword({ email :

AngularJS error: TypeError: v2.login is not a function

試著忘記壹切 提交于 2019-12-19 12:24:23
问题 I would like to call the login function when I click the login button but keep getting the error message in the title. Can someone point out the error in my script? login.js code below: /*global Firebase, angular, console*/ 'use strict'; // Create a new app with the AngularFire module var app = angular.module("runsheetApp"); app.controller("AuthCtrl", function ($scope, $firebaseAuth) { var ref = new Firebase("https://xxxxx.firebaseio.com"); function login() { ref.authWithPassword({ email :

Can't get FB profile picture with Firebase

自闭症网瘾萝莉.ら 提交于 2019-12-19 12:00:45
问题 I cannot get user's Facebook profile picture into my imageView. I am trying to get with Picasso library. Have an idea to solve that? Here is my codes. Thanks in advance! R.string.facebook_provider_id= "facebook.com" Error: FATAL EXCEPTION: main Process: com.example.yunus.ototakip, PID: 3045 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.yunus.ototakip/com.example.yunus.ototakip.Hesabim}: java.lang.IllegalArgumentException: Target must not be null. Hesabim.java

How can i create a user with info about Display Name, username & Profile pic?

扶醉桌前 提交于 2019-12-19 12:00:11
问题 How can i create a user with info about Display Name, username & Profile pic? Can I use this code? if let user = FIRAuth.auth()?.currentUser let name = user.displayName let email = user.email let photoUrl = user.photoURL let uid = user.uid; // The user's ID, unique to the Firebase project. // Do NOT use this value to authenticate with // your backend server, if you have one. Use // getTokenWithCompletion:completion: instead. } else { // No user is signed in. } If not, for what purpose this

How to get refresh token for google api using Firebase authentication

淺唱寂寞╮ 提交于 2019-12-19 11:38:10
问题 From firebase's documentation firebase.auth().signInWithPopup(provider).then(function(result) { // This gives you a Google Access Token. You can use it to access the Google API. var token = result.credential.accessToken; // The signed-in user info. var user = result.user; // ... }).catch(function(error) { // Handle Errors here. var errorCode = error.code; var errorMessage = error.message; // The email of the user's account used. var email = error.email; // The firebase.auth.AuthCredential

How to get refresh token for google api using Firebase authentication

被刻印的时光 ゝ 提交于 2019-12-19 11:38:06
问题 From firebase's documentation firebase.auth().signInWithPopup(provider).then(function(result) { // This gives you a Google Access Token. You can use it to access the Google API. var token = result.credential.accessToken; // The signed-in user info. var user = result.user; // ... }).catch(function(error) { // Handle Errors here. var errorCode = error.code; var errorMessage = error.message; // The email of the user's account used. var email = error.email; // The firebase.auth.AuthCredential