firebase-authentication

Use Google Firebase Authentication without 3rd Party Cookies

元气小坏坏 提交于 2020-01-11 05:48:06
问题 I'm currently experimenting with Social Media Sign-in and have realised something slightly strange on how these logins are delivered which is stemming from the fact that my workplace, like most offices, blocks 3rd party cookies as a security policy. Google Firebase Authentication uses 3rd party cookies and so if I try to use Firebase, I'm redirected to the Google page (as expected) but when I'm redirected back to the originating webpage after logging in (and Firebase tries to set cookies), I

iOS firebase: FIRAuthUIDelegate.authUI not being called

假装没事ソ 提交于 2020-01-11 05:24:06
问题 I am trying to launch google login from AppDelegate.swift and then launch my app's main screen upon login success. I am able to show the google login button as shown above the user is sent to google to sign in the user is sent back to original (step 1) After step 3. I'd like to send the user to my app's main page. My code is below. The problem I'm having is that authUI is not being called. @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, FIRAuthUIDelegate { var window

How to get userID by user Email Firebase android?

被刻印的时光 ゝ 提交于 2020-01-10 14:14:31
问题 Given a email address, is it possbile to get userID of a person? For example, If I have a variable email that has email of the person. Can I get their ID by doing something like String userID = mAuth.DatabaseReference.getuID.(email); Sorry if this a stupid question. Edit: note, I am looking to get ID of a person who is not the current user. So I can't use FirebaseUser user = mAuth.getCurrentUser(); The structure of my database looks like this, so the ID will be stored in database already. I

How to get userID by user Email Firebase android?

混江龙づ霸主 提交于 2020-01-10 14:12:14
问题 Given a email address, is it possbile to get userID of a person? For example, If I have a variable email that has email of the person. Can I get their ID by doing something like String userID = mAuth.DatabaseReference.getuID.(email); Sorry if this a stupid question. Edit: note, I am looking to get ID of a person who is not the current user. So I can't use FirebaseUser user = mAuth.getCurrentUser(); The structure of my database looks like this, so the ID will be stored in database already. I

How to Handle Firebase Auth exceptions on flutter

三世轮回 提交于 2020-01-10 05:59:07
问题 Please does anyone know how to catch firebase Auth exceptions on flutter and display them, Note: I am not interested in the console ( catcherror((e) print(e)) I need something that is more effective, e.g " user doesn't exist" So that I can then pass it to a string and display it. Been dealing with this for months. Thanks in advance i have tried replacing print(e) with // errorMessage=e.toString(); and then passing it to a function, all efforts have been frutile FirebaseAuth.instance

Android Firebase Auth Crash on KitKat

為{幸葍}努か 提交于 2020-01-09 12:05:03
问题 my app using Firebase Anonymous Auth is crashing on API19 (4.4). E/AndroidRuntime: FATAL EXCEPTION: main Process: com.author.example, PID: 2191 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.author.example/com.author.example.MainActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) at android.app.ActivityThread.access$800

error “java.lang.StackOverflowError:” when try to save object in Firebase Database

此生再无相见时 提交于 2020-01-09 11:16:12
问题 I am new to the firebase. I tried to save the properties of the users listed in my application into the database Firebase , this is code mAuthListener = new FirebaseAuth.AuthStateListener() { @Override public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) { firebaseuser = firebaseAuth.getCurrentUser(); if (firebaseuser != null) { finish(); firebaseuser = mAuth.getCurrentUser(); String nama = firebaseuser.getDisplayName(); String mail = firebaseuser.getEmail(); //String pass =

Swift Firebase Must be a non-empty string and not contain '.' '#' '$' '[' or ']'

醉酒当歌 提交于 2020-01-09 08:19:05
问题 This is a follow up to my previous question. I am trying to see if an email has already been used. I am using the line if snapshot.hasChild(email) { I have in my database an email test1@test.com When I type that in..the moment I get to the '.' before com the app crashes and gives an error that says this Must be a non-empty string and not contain '.' '#' '$' '[' or ']' I see a lot of posts about checking for usernames, but my app doesn't have usernames, just email. Am I able to use email with

How to merge custom login (Email) with Facebook login in swift using firebase

可紊 提交于 2020-01-07 06:59:13
问题 I am implementing custom (Email) and Facebook login authentication in swift using Firebase. Since, I enabled multiple accounts per email address, a same user using his email as well as his facebook account can sign in to the app. Firebase considers them as two separate users, but I want to merge them as long as the email address is same. I found this link from the Facebook site which explain the scenario which i am trying to solve. I am looking for any code samples on how to do. Thanks in

Firestore permissions

六眼飞鱼酱① 提交于 2020-01-07 04:57:28
问题 How do I configure permissions so that a user can only read and write documents where they are the owner? my documents have a top level attribute called owner. I read these docs https://firebase.google.com/docs/firestore/security/secure-data?authuser=0#the_resource_variable and it seems like this should work? service cloud.firestore { match /databases/{database}/documents { match /analysis/{analysis} { allow read, write: if request.auth.email == resource.data.owner } } } however this doesn't