firebase-authentication

Fireabse UI sign up without requesting user name

笑着哭i 提交于 2021-02-04 08:30:45
问题 Using Firebase UI for sign-in and sign-up, how do I remove the option for a user to sign-up with a first & last name? In other words, only their email and password are required. According to this github issue, the feature to do so has been implemented. Firebase provided Kotlin code for sign-in/sign-up: private fun createSignInIntent() { // Choose authentication providers val providers = arrayListOf( AuthUI.IdpConfig.EmailBuilder().build(), AuthUI.IdpConfig.GoogleBuilder().build()) // Create

Firebase: should I store user data on the authentication profile or database

送分小仙女□ 提交于 2021-02-04 08:29:45
问题 I signed up a user in my Flutter app using FirebaseAuth.instance.verifyPhoneNumber() . This works perfectly and the user shows up in my Firebase Console. FirebaseAuth.instance.currentUser() now returns the user for me whenever I open the app. Should I store user info (age, weight etc.) here, or should I create a users collection in my Database and link the currentUser().uid in there? Also, should I store it on the Database linked against the uid , or linked against the login info. For example

Firebase: should I store user data on the authentication profile or database

两盒软妹~` 提交于 2021-02-04 08:29:28
问题 I signed up a user in my Flutter app using FirebaseAuth.instance.verifyPhoneNumber() . This works perfectly and the user shows up in my Firebase Console. FirebaseAuth.instance.currentUser() now returns the user for me whenever I open the app. Should I store user info (age, weight etc.) here, or should I create a users collection in my Database and link the currentUser().uid in there? Also, should I store it on the Database linked against the uid , or linked against the login info. For example

How to get FirebaseUser from a uid?

我只是一个虾纸丫 提交于 2021-02-04 08:07:03
问题 Let's say I've a user id String uid = "1234abcdefgh890"; Now, I'd want to get a FirebaseUser using this uid, how do I do that? FirebaseAuth auth = FirebaseAuth.instance; FirebaseUser user = (await auth.signInWithXXX(uid)).user; // is there any method like this How can I get the FirebaseUser then? 回答1: There is no API in the Firebase client-side SDKs to get user information based on a UID, as this could potentially be a security concern. If you need this information, you can either implement

How to get FirebaseUser from a uid?

。_饼干妹妹 提交于 2021-02-04 08:06:42
问题 Let's say I've a user id String uid = "1234abcdefgh890"; Now, I'd want to get a FirebaseUser using this uid, how do I do that? FirebaseAuth auth = FirebaseAuth.instance; FirebaseUser user = (await auth.signInWithXXX(uid)).user; // is there any method like this How can I get the FirebaseUser then? 回答1: There is no API in the Firebase client-side SDKs to get user information based on a UID, as this could potentially be a security concern. If you need this information, you can either implement

Firebase Authentication with multi-factor authentication

谁说胖子不能爱 提交于 2021-02-04 06:59:30
问题 Is there a way to implement multi-factor authentication on Firebase Authentication? From my research it seems impossible since Firebase authentication has public REST api of which, assumingly, someone knowing API_KEY and user's email/pass could directly sign in to that user's account using https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword?key=[API_KEY] Thank you 回答1: Update: June 2020 From March 12, 2020, It is now possible to set up multi-factor authentication using

Firebase Authentication with multi-factor authentication

浪子不回头ぞ 提交于 2021-02-04 06:57:27
问题 Is there a way to implement multi-factor authentication on Firebase Authentication? From my research it seems impossible since Firebase authentication has public REST api of which, assumingly, someone knowing API_KEY and user's email/pass could directly sign in to that user's account using https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword?key=[API_KEY] Thank you 回答1: Update: June 2020 From March 12, 2020, It is now possible to set up multi-factor authentication using

Attempting to make firebase.auth().currentUser a promise

ぃ、小莉子 提交于 2021-02-02 09:52:10
问题 When a user logs in, I'm trying to send them to a restricted page. So I'm protecting the route by checking for the user object. The problem is that when a user is created or logging in, the auth doesn't immediately change, so after creating or logging in, firebase.auth().currentUser can return null for a couple of milliseconds. So if I send them to the page, it will return an error. This is what I'm trying to do in an attempt for the route to wait a while to see if the auth changes. I'm

How to get access to the firebase Authentication part

让人想犯罪 __ 提交于 2021-02-02 08:18:17
问题 In my app I've 2 login methods(google&facebook) and all the users appear in the Authentication part inside my firebase project, and I haven't list/collection of my users in my database. I want to display in my app list of users with some personal data. My question is how do i get access to the users from the Authentication part(to get all the users for example)? Is it good approach that the users appear only in the Authentication and not inside my database? 回答1: You can't list user accounts

How to get access to the firebase Authentication part

耗尽温柔 提交于 2021-02-02 08:13:24
问题 In my app I've 2 login methods(google&facebook) and all the users appear in the Authentication part inside my firebase project, and I haven't list/collection of my users in my database. I want to display in my app list of users with some personal data. My question is how do i get access to the users from the Authentication part(to get all the users for example)? Is it good approach that the users appear only in the Authentication and not inside my database? 回答1: You can't list user accounts