firebase-authentication

Flutter and Firestore does not have user information in request

房东的猫 提交于 2019-12-22 04:30:19
问题 Using flutter, I have installed the firebase-auth and firestore packages and am able to both authenticate with firebase auth and make a call into firestore as long as I don't have any rules around the user. I have a button that calls _handleEmailSignIn and I do get a valid user back (since they are in the Firebase Auth DB) import 'package:firebase_auth/firebase_auth.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; final FirebaseAuth _auth = FirebaseAuth.instance; void

FirebaseUI Auth - Facebook Login error : Unsuccessful debug_token response from Facebook

*爱你&永不变心* 提交于 2019-12-22 04:11:41
问题 I'm trying to integrate FirebaseUI Auth library. Google sign-in and Email sign-in are working fine but I have a problem setting up Facebook Login. This is my code: user = firebaseAuth.getCurrentUser(); if (user != null) { startMainActivity(); finish(); } else { startActivityForResult( AuthUI.getInstance() .createSignInIntentBuilder() .setIsSmartLockEnabled(!BuildConfig.DEBUG) .setProviders(Arrays.asList(new AuthUI.IdpConfig.Builder(AuthUI.EMAIL_PROVIDER).build(), new AuthUI.IdpConfig.Builder

FirebaseUI Auth - Facebook Login error : Unsuccessful debug_token response from Facebook

眉间皱痕 提交于 2019-12-22 04:11:40
问题 I'm trying to integrate FirebaseUI Auth library. Google sign-in and Email sign-in are working fine but I have a problem setting up Facebook Login. This is my code: user = firebaseAuth.getCurrentUser(); if (user != null) { startMainActivity(); finish(); } else { startActivityForResult( AuthUI.getInstance() .createSignInIntentBuilder() .setIsSmartLockEnabled(!BuildConfig.DEBUG) .setProviders(Arrays.asList(new AuthUI.IdpConfig.Builder(AuthUI.EMAIL_PROVIDER).build(), new AuthUI.IdpConfig.Builder

How to verify users current password?

落花浮王杯 提交于 2019-12-22 04:08:18
问题 So, maybe I missed this somewhere in the docs but I couldn't find anything of the sort. I wan't my users to have to type in their current password to be able to create a new one. From what I understand if the user is authenticated he is able to update his password without providing his current one. Even if this might be somewhat secure I would rather have him type his old one to prevent people from going on already authenticated sessions from say family members or so and changing the pw. Is

How to resend SMS verification in Firebase Phone Authentication Android?

ε祈祈猫儿з 提交于 2019-12-22 01:55:18
问题 According to Firebase documentation (https://firebase.google.com/docs/auth/android/phone-auth#send-a-verification-code-to-the-users-phone), there is callback for handling the phone number authentication. mCallbacks = new PhoneAuthProvider.OnVerificationStateChangedCallbacks() { @Override public void onVerificationCompleted(PhoneAuthCredential credential) { Log.d(TAG, "onVerificationCompleted:" + credential); signInWithPhoneAuthCredential(credential); } @Override public void

Firebase reauthenticateAndRetrieveDataWithCredential problems

China☆狼群 提交于 2019-12-22 00:12:27
问题 Method reauthenticateAndRetrieveDataWithCredential requires credential . I tried this and it gives me an error: const user = firebase.auth().currentUser; const credential = firebase.auth.OAuthCredential; await user.reauthenticateAndRetrieveDataWithCredential(credential); await user.updateEmail(email); return email; Error message reauthenticateAndRetrieveDataWithCredential failed: First argument "credential" must be a valid credential. I only have oath authentication (no email + password). So

Google and Facebook Firebase Auth using swift 3

邮差的信 提交于 2019-12-21 23:55:41
问题 My google sign is not prompting users to allow permissions in their profile while facebook is prompting. Why? I am implementing my google login in view controller not in app delegate like in the guide. I'm not sure what i did is correct. I've been trying to implement this for hours. Here's my code: apple delegate.swift class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:

Property 'subscribe' does not exist on type Auth

 ̄綄美尐妖づ 提交于 2019-12-21 21:36:07
问题 With the code below, I am getting the error Property 'subscribe' does not exist on type Auth . If I remove the entire block of subscribe code from app.component.ts then I am getting no error, but the browser is opening directly on the home page and not the login page. At the bottom of app.component.html I have included <router-outlet></router-outlet> , app.component.ts import { Component } from '@angular/core'; import { Router } from '@angular/router'; import { Observable } from 'rxjs

FIrebase Google auth operation not supported in this environment

和自甴很熟 提交于 2019-12-21 20:58:31
问题 I am working on ionic and firebase project, made a login page to sign in with google. I am using this Below. var provider = new firebase.auth.GoogleAuthProvider(); firebase.auth().signInWithRedirect(provider).then(function (result) { var token = result.credential.accessToken; // The signed-in user info. var user = result.user; $state.go('app.homepage'); }).catch(function (error) { }); firebase.auth().getRedirectResult().then(function (result) { if (result.credential) { var token = result

ANR caused by com.google.android.gms.DynamiteModules

梦想与她 提交于 2019-12-21 19:53:01
问题 I am using Firebase inside my app with Facebook authentication. After the 3th restart of my app, it freezes and then shows an ANR (please see my last question). After some doing some research i found out that something is blocking the main thread. I have no clue why this is happening. The error below show up a couple of times when my app is running (my app does not freeze when this error appears). Does anyone have an idea? I have included some info below, maybe it helps Note: Google play