firebase-authentication

Flutter - firebase_auth updateProfile method is not working

倾然丶 夕夏残阳落幕 提交于 2020-04-10 02:54:30
问题 I'm creating app using Flutter with Firebase. I have some weird issues. I'm creating authentication and it is working fine but when i try to add some collections to my Firestore Database, the record of displayName is set to null. Future<FirebaseUser> createUser(email, password, displayName) async { final FirebaseUser user = await _auth.createUserWithEmailAndPassword( email: email, password: password); UserUpdateInfo info = new UserUpdateInfo(); info.displayName = displayName; _auth

Electron: Firebase and Facebook authentication?

人盡茶涼 提交于 2020-04-07 05:41:23
问题 I'm trying to provide additional authentication for user within an app. With email/password auth already implemented, I wanted to add Facebook/ Google authentication as well. I've tried with firebaseui : const ui = new firebaseui.auth.AuthUI(firebase.auth()); ui.start(selector, { callbacks: { signInSuccessWithAuthResult(authResult) { that.handleAuthentication(authResult); return false; }, }, credentialHelper: firebaseui.auth.CredentialHelper.NONE, signInFlow: 'redirect', signInOptions: [ {

Firebase Multiple Accounts are signed at the same time

夙愿已清 提交于 2020-04-07 03:56:00
问题 I want my users to sign in with multiple accounts (Not linking multiple providers) like gmail, it allows you to use multiple signed in accounts at the same time you can check all inboxes for all accounts at the same time e.g. I am a User and I want to use two accounts john@example.com & john21@example.com I want both emails signed in (there are two auth tokens in this case) I have searched about it in Firebase docs, I couldn't find anything Is this possible in Firebase Auth? 回答1: From one

Firebase Multiple Accounts are signed at the same time

醉酒当歌 提交于 2020-04-07 03:55:11
问题 I want my users to sign in with multiple accounts (Not linking multiple providers) like gmail, it allows you to use multiple signed in accounts at the same time you can check all inboxes for all accounts at the same time e.g. I am a User and I want to use two accounts john@example.com & john21@example.com I want both emails signed in (there are two auth tokens in this case) I have searched about it in Firebase docs, I couldn't find anything Is this possible in Firebase Auth? 回答1: From one

Firebase auth.currentUser is null when loading the page, user loaded when authstatechange called after some milli seconds of page load

一笑奈何 提交于 2020-04-05 06:53:10
问题 I am using React with Firebase to develop a small web app. To take care of authentication, I am using context API and inside context I am adding loggedin user details. AuthProvider.tsx const AuthProvider: React.FC = props => { const [state, setState] = useState<IAuthContext>(authInitialState); console.log("Inside AuthProvider"); useEffect(() => { auth.onAuthStateChanged( user => { console.log("Auth State changed and user is ----->", user); if (user) { console.log("User value updated to the

Mocking iOS Firebase Auth sign-in methods

孤街醉人 提交于 2020-03-25 19:21:21
问题 This question is somewhat similar to Mock third party classes (Firebase) in Swift but different enough to warrant a new question, based on the answers to it. I'm trying to mock the Auth / FIRAuth method signIn(withEmail email: String, password: String, completion: AuthDataResultCallback?) and am running into difficulties with trying to mock the AuthDataResultCallback object, mainly because it has a User property that I also want to mock. Unfortunately, I'm not able to create my own User or

User profile information is not showing up using swift and firestore database

风格不统一 提交于 2020-03-25 17:57:49
问题 pic of database I am trying to show a label with the user's status on their profile page. after logging in the user gets presented with a VC that has a side menu. on that side menu is a "profile" option. once choosing this they go to their profile controller. right now i simply need to search users/current uid/ "MembershipStatus" and present this result into a label called "welcomeLabel". I am returning nul import UIKit import Firebase class NonMemberProfileController: UIViewController { //

User profile information is not showing up using swift and firestore database

独自空忆成欢 提交于 2020-03-25 17:57:11
问题 pic of database I am trying to show a label with the user's status on their profile page. after logging in the user gets presented with a VC that has a side menu. on that side menu is a "profile" option. once choosing this they go to their profile controller. right now i simply need to search users/current uid/ "MembershipStatus" and present this result into a label called "welcomeLabel". I am returning nul import UIKit import Firebase class NonMemberProfileController: UIViewController { //

Firebase Authentication Link Facebook to Google

99封情书 提交于 2020-03-25 05:52:52
问题 After many tests I decided to create a new xCode project to better understand Firebase authentication with multiple providers. I set up in Firebase -> SignIn Methods -> An account per email address An account per email address Prevents users from creating multiple accounts using the same email address with different authentication providers At this point I have implemented, carefully following the Firebase guide, the login with Facebook and with Google .. Everything seems to work perfectly

Firebase Authentication Link Facebook to Google

一世执手 提交于 2020-03-25 05:52:40
问题 After many tests I decided to create a new xCode project to better understand Firebase authentication with multiple providers. I set up in Firebase -> SignIn Methods -> An account per email address An account per email address Prevents users from creating multiple accounts using the same email address with different authentication providers At this point I have implemented, carefully following the Firebase guide, the login with Facebook and with Google .. Everything seems to work perfectly