firebase-authentication

How can I redirect back to my app after the user has verified their email using Firebase Auth and Swift?

余生颓废 提交于 2019-12-13 12:13:39
问题 When a user signs up in my app, they get a pop up that says, please verify your email and then login. When the user clicks OK, it takes them to login page. At this point the user should go to the Mail app (iPhone) and click the link that has been sent to them from Firebase. Clicking this link currently opens Safari and tells the user the account is verified, then the user has to manually go back to the app. How can I verify the user AND then also take them back to the app? I've read up about

Firebase Facebook auth: email verified always false

亡梦爱人 提交于 2019-12-13 12:03:25
问题 As said in the title, no matter how I try the Facebook login, the emailVerified field is always false. Is this by design? I've read through the whole firebase docs by now, can't seem to find any information regarding this. Just to be sure: I've tried with 4 different verified accounts, the result is always the same. Any idea what could cause this kind of behavior? 回答1: the reason why Google provider emails are verified and Facebook emails are not is because Google is considered a trusted

can i login into a user's account if I just know UID in firebase [duplicate]

点点圈 提交于 2019-12-13 11:28:16
问题 This question already has an answer here : Firebase - Is auth.uid a shared secret? (1 answer) Closed last year . i have a button and i know a user's unique UID generated by firebase after a user is created on the firebase console's authentication page, now upon clicking the button i want to login that user, is that possible? if yes how? i don't want to use email and password, i want to login with just the UID. I have tried creating custom token as shown here Cannot Resolve setCredentials in

Firebase Google Authentication - Check if User Logs in for first time

南楼画角 提交于 2019-12-13 10:24:33
问题 I use a Register/Login on my Website which also supports Google Login, the problem is i make a new Data Document in the Firestore with the uid on register, but i cannot do that for the Google Login otherwise it would wipe the existing entry, because i can only SignIn with Google but i need a way to check if the User already exists. googlelogin: function() { var provider = new firebase.auth.GoogleAuthProvider(); firebase.auth().signInWithPopup(provider).then(function(result) { // This gives

How to login using username instead email on Firebase in Android application [duplicate]

时光毁灭记忆、已成空白 提交于 2019-12-13 10:00:29
问题 This question already has answers here : Username authentication instead of email (3 answers) Closed last year . I am creating an application using Firebase database in which login and sign up functionality added. I want to add the login with username instead of email id. But I don't find any method for authentication with username. If I change firebase database rules for public then I able to login with username, but the security of database is hamper in this case. So please guide me for

How to deregister / unregister Firebase user when registered using Phone Auth

我是研究僧i 提交于 2019-12-13 09:49:54
问题 I have registered users using Firebase convenience FUIPhoneAuth. When I try to delete the user with: [user deleteWithCompletion:^(NSError * _Nullable error) .. I get an error message saying the only recently authenticate users can be deleted. "This operation is sensitive and requires recent authentication. Log in again before retrying this request." In order to deregister the user, I first need to re-authenticate the user which requires a FIRAuthCredential "credential" parameter: [user

Fetch all children from database

独自空忆成欢 提交于 2019-12-13 09:09:05
问题 In my app is tableview where i want to show all child of my customers. This is database structure: When previously under Customers I had only one child then I knew how to show customers when path was usersDatabase/userID/Customers . But in this moment my path is usersDatabase/userID/Customers/userSpecificName and my tableview show blank cell. What I must add in my code to properly working of code? This is code when I import data from Database: let userID = Auth.auth().currentUser!.uid ref =

Can not Resolved FirebaseOptions.Builder().setCredentials()

前提是你 提交于 2019-12-13 08:16:03
问题 Trying to achieve Firebase authentication using customToken . Getting error while doing below: FirebaseOptions options = new FirebaseOptions.Builder() .setCredentials(GoogleCredentials.fromStream(serviceAccount)) .setDatabaseUrl("path to file") //different in actual .build(); FirebaseApp.initializeApp(options); It says can not resolve setCredentials() and after this when I'm trying to creat token is gives same error: FirebaseAuth.getInstance().createCustomToken(uid); Searched all over the net

Android Studio 3.0 Firebase

↘锁芯ラ 提交于 2019-12-13 07:34:37
问题 I have been using firebase authentication without any problem with compile SDK version 26.01 of Android Studio 2.3.3 until yesterday. However, since I updated to 3.0 yesterday, every time I sign-in, Developer error Toast will appear and my app will be terminated abnormally. Now I have erased and installed Android studio several times because of this problem. providers.add(new AuthUI.IdpConfig.Builder(AuthUI.GOOGLE_PROVIDER).build()); startActivityForResult( AuthUI.getInstance()

linking created users to database in firebase web app

♀尐吖头ヾ 提交于 2019-12-13 07:29:53
问题 How do I link the authenticated users to my firebase database in my Angular JS web app? I understand that I would have to create a node in my database tree for each user. I have created a node in my database tree called "users" for this. What I do not understand is how to get each user to occupy a sub-node in my "users" node in my database such that once logged in, all the data each user saves is saved under their respective sub-nodes. This is my code at the moment: $scope.saveTeam = function