firebase-authentication

How to add custom fields and business logics in firebase auth UI Android?

允我心安 提交于 2021-02-11 15:20:45
问题 I'm using firebase's pre-build auth UI and which seems very helpful to me reducing a lot of boilerplate code. But I'm facing some limitations. For email registration using prebuild auth UI, there are only the three fields I'm getting ( Email, First and last name, password ) showing the attached image below. But I need to add some extra fields ( Address, Postal code, etc ) and apply some business logic like confirm password , password strength check , etc. I got a solution from another

Node.JS Firebase Auth - Is there a way to keep a user session like with client side Firebase Auth?

[亡魂溺海] 提交于 2021-02-11 14:59:52
问题 I am learning Node.JS and I am trying to bring Firebase Auth into my application. With client-side firebase auth, you can just do firebase.auth().currentUser but in node, as the script is not run on the client, but once on the server, you cannot use firebase.auth().currentUser . Is there a way involving sessions or cookies (I think) to get user data and use normal Firebase Auth operations from node just like client side Firebase Auth? (I am using express with Node) 回答1: As you've found there

How to use the same Firebase Auth for Two different Flutter apps?

喜夏-厌秋 提交于 2021-02-11 14:59:03
问题 I developed two different Flutter applications. An Admin Version and another Client Version. I would like to use the same login (auth) and access to Storage for both Apps. 回答1: It's definitely possible to access the same Firebase project from two different apps. In fact, when these apps are locally part of the same "application", that is actually an intended use-case. A few things to keep in mind though: Firebase Authentication does not have the concept of an administrator user. It "merely"

Dynamic link returning empty JSON string from Firebase

冷暖自知 提交于 2021-02-11 14:41:30
问题 I'm setting up my Android app to support email authentication and as part of the task I need to create a dynamic link, which I did in the Firebase console. However, when I tested the link (https://chiaramail.page.link/.well-known/assetlinks.json, I just got back empty data ("[]"). Is there something else that needs to happen? 回答1: I had the same issue. Actually it is because, you need to provide SHA256 instead of SAH1 to implement dynamic link to your project. I tried to add it with my

Firebase functions user().onCreate: Pass parameters [duplicate]

≯℡__Kan透↙ 提交于 2021-02-11 14:27:44
问题 This question already has answers here : Should firebase auth onCreate trigger have more data? (1 answer) Firebase Auth+Functions | create user with displayName (1 answer) Closed 8 months ago . I have 2 types of users, admins and normal users. In my firebase database, each admin has a document in a 'texts' collection. So, when a new user is created, I want to check if it is an admin or not. On my Flutter client however, I cant pass any other param than email and password, so how does my

how to validate email before enter to the home page flutter

北慕城南 提交于 2021-02-11 14:13:46
问题 i'm trying to validate my email before the user can enter to the home page. the problem is when i fill the email and password user with aaany thing it give the access without any check. here is my code for sign in page and this is the code of sign up screen 回答1: If it is all about validating the email for formatting , then what you can do is shown below. Put it in your email address validator you are submitting the data for Login/Register validator: (value){ Pattern pattern = r'^(([^<>()[\]\\

Firebase Cloud Function - Create user with extra information

北城余情 提交于 2021-02-11 13:56:17
问题 I am currently looking for the best way to create a user with additional information in a cloud function. The obvious possibility seems to create a trigger which creates a user document: functions.auth.user().onCreate((user) => { /* Create user document in firestore with base information*/ }); And afterwards add the information to the created document. (Handle the promise) But one way or another I don't feel really satisfied with this solution. I would rather do all this stuff in one go. Does

Is it possible to use additional providers for firebase authentication?

一笑奈何 提交于 2021-02-11 13:51:00
问题 Apart from the existing providers, is it possible to use an additional provider for firebase authentication? I am using Flutter . Any detail explanation will be highly appreciated. 回答1: You can indeed create a custom provider for Firebase Authentication. The process on Flutter is mostly the same as on other platforms: You sign the user in the custom backend or provider, and get credentials from that. This step is not related to Firebase in any way. You pass the credentials to a custom trusted

changes made to firebase currentUser is not reflected until full reload of the application [duplicate]

孤者浪人 提交于 2021-02-11 13:48:05
问题 This question already has an answer here : change displayName of the currentUser in firebase [closed] (1 answer) Closed 10 months ago . I want to update displayName of the current user and display it on screen. firebase .auth() .createUserWithEmailAndPassword(email, password) .then((response) => {response.user.updateProfile({displayName: 'John Doe'}),response.user.reload()}) .catch(error => Alert.alert('', error.message)); console.log(firebase.auth().currentUser.displayName); using this code

Verify a user's email address before confirming registration, with Flutter and Firebase

女生的网名这么多〃 提交于 2021-02-11 13:33:07
问题 I've created a login and registration screen that works with my Flutter app, using Firebase as the backend authentication service. I'm able to switch between the login, registration and reset password screens well. The Issue At the moment, the registration screen accepts any email address that is entered, whether or not it is real. For example, if I were to type in gvevg@gverwbgw.com, it would allow the user to register. This is obviously an issue, when it comes to fake accounts and spam etc.