firebase-authentication

Uncaught Error: Call to undefined method Kreait

让人想犯罪 __ 提交于 2021-02-17 06:11:50
问题 I just created php web server and connected it to firebase. when I tried authentication, Sign up works just fine. but the problem is in Sign in. it keeps getting this error: Fatal error: Uncaught Error: Call to undefined method Kreait\Firebase\Auth::signInWithEmailAndPassword() in /Applications/XAMPP/xamppfiles/htdocs/firebase_series/authActions.php:24 Stack trace: #0 {main} thrown in /Applications/XAMPP/xamppfiles/htdocs/firebase_series/authActions.php on line 24 here my authentication code:

Remove email of third party provider when unlinking?

牧云@^-^@ 提交于 2021-02-17 05:22:27
问题 I try unlinking apple porvider as sign In for my firebase auth. The unlink is successful but the email still presist, so when the user sign in with apple again it allows them to read their data because of the email persistence. The problem is not local or cache problem, its firebase not erasing email record since I can see the Apple email as an identitifer while the Apple logo for provider goes away when I unlink. I am using Phone Auth, and option to link Apple. How do I remove email from

Remove email of third party provider when unlinking?

自古美人都是妖i 提交于 2021-02-17 05:22:08
问题 I try unlinking apple porvider as sign In for my firebase auth. The unlink is successful but the email still presist, so when the user sign in with apple again it allows them to read their data because of the email persistence. The problem is not local or cache problem, its firebase not erasing email record since I can see the Apple email as an identitifer while the Apple logo for provider goes away when I unlink. I am using Phone Auth, and option to link Apple. How do I remove email from

How to integrate LINE login into Firebase Auth

你。 提交于 2021-02-17 05:20:34
问题 I did some research and experiments on integrating LINE login with Firebase Auth using Flutter. I have some questions: Looks like in Firebase Auth, there are AuthProvider , and in Flutter source code, I also found an OAuthProvider . There you can create Credential to include your idToken and access token. But I don't know how to specify the providerId in that Credential . I guess it is not possible, because Firebase hasn't integrate LINE login. The client side api: logInWithCredential can

FirebaseAuth.getInstance() always return null

柔情痞子 提交于 2021-02-17 03:38:05
问题 I know I can see so many questions on this topic on stackoverflow and I have tried almost all of them and haven't worked yet so this is my only option to post a new question. My problem is FirebaseAuth.getInstance always return null even though I have initialized the FirebaseApp. My main purpose is to use phone authenticaiton from firebase and I have enabled it in firebase console. Things I have done- Built firebase project in firebase console Added SHA-1 key downloaded the json file and

currentUser() is not working type why I am seeing the expression doesn't evaluate to a function, so it can't be invoked

岁酱吖の 提交于 2021-02-16 20:25:38
问题 I'm new in Flutter, I'm working on a simple authentication app when I registered i should navigate to the chat screen and i want to grab current user but when i call FireBaseAuth.instance.currentUser() I got an exception "the expression doesn't evaluate to a function, so it can't be invoked." Why I'm seeing this? Please Help import 'package:firebase_auth/firebase_auth.dart'; import 'package:flutter/material.dart'; import 'package:flash_chat/constants.dart'; class ChatScreen extends

Firebase Auth Custom claims not propagating to client

我们两清 提交于 2021-02-16 05:19:11
问题 I have a user with UID 1 where the custom claims are set as, frompos=true I am setting new custom claims to this user from the ADMIN SDK for java the following way: Map<String,Object> claims = new HashMap<>(); claims.put("frompos",false); FirebaseAuth.getInstance().setCustomUserClaimsAsync("1", claims).get(10000, TimeUnit.MILLISECONDS); I print the claims on the server side to check if the claims are set: UserRecord user = FirebaseAuth.getInstance().getUserAsync("1").get(10000, TimeUnit

Firebase Auth Custom claims not propagating to client

对着背影说爱祢 提交于 2021-02-16 05:18:22
问题 I have a user with UID 1 where the custom claims are set as, frompos=true I am setting new custom claims to this user from the ADMIN SDK for java the following way: Map<String,Object> claims = new HashMap<>(); claims.put("frompos",false); FirebaseAuth.getInstance().setCustomUserClaimsAsync("1", claims).get(10000, TimeUnit.MILLISECONDS); I print the claims on the server side to check if the claims are set: UserRecord user = FirebaseAuth.getInstance().getUserAsync("1").get(10000, TimeUnit

How do I keep a user logged in? Swift

情到浓时终转凉″ 提交于 2021-02-15 06:23:32
问题 I'm using firebase for login and I need to know how to stay logged in until I log out. I have heard about UserDeafults but I'm not sure on how to use it. Here is my login view controller: import FirebaseAuth import FirebaseFirestore import Firebase import FirebaseAnalytics import UIKit class LoginViewController: UIViewController { @IBOutlet weak var emailTextField: UITextField! @IBOutlet weak var passwordTextField: UITextField! @IBOutlet weak var loginButton: UIButton! @IBOutlet weak var

FireBaseUI Auth - how to know if account is from a new signup or existing user?

断了今生、忘了曾经 提交于 2021-02-14 18:40:53
问题 I am using firebaseUI for authentication. it essentially opens a a external activity and logs the user into firebase and sends the developer a call back in onActivityResult. It works great the problem is i need to know if the user is a new signup or an existing user. is there any kind of metadata or something i can use to know this ? here is what i have so far IN JAVA ANDROID: private void ititFireBaseUi() { AuthUI.getInstance() .signOut(getActivity()) .addOnCompleteListener(new