firebase-authentication

How to allow user to create and switch between multiple accounts in Flutter?

时光怂恿深爱的人放手 提交于 2020-12-06 15:55:53
问题 I am trying to make a Flutter app where the user can sign in into multiple accounts (different email IDs) and can switch between them from the UserAccounsDrawerHeader . For example, in Gmail app, users can switch between multiple Gmail accounts. Is this possible using Firebase Auth for Flutter? 回答1: In the default scenario, Firebase Auth generally does not support allowing a user to be signed in with multiple accounts at the same time. If you want to add support, what you will have to do is

How to allow user to create and switch between multiple accounts in Flutter?

拥有回忆 提交于 2020-12-06 15:54:12
问题 I am trying to make a Flutter app where the user can sign in into multiple accounts (different email IDs) and can switch between them from the UserAccounsDrawerHeader . For example, in Gmail app, users can switch between multiple Gmail accounts. Is this possible using Firebase Auth for Flutter? 回答1: In the default scenario, Firebase Auth generally does not support allowing a user to be signed in with multiple accounts at the same time. If you want to add support, what you will have to do is

Firebase Rules with facebook Authentication and Unique IDs

馋奶兔 提交于 2020-12-06 12:10:01
问题 I'm looking for some advice or a possible solution with tightening up my firebase rules. This is my user tree in Firebase: users |_male |_uid |_female |_uid The UID will be an epoch timestamp when the account is created which will be a signed integer. These are the firebase rules which basically ensures the user has logged in and authenticated with Facebook before they can read or write to users: "users": { "male":{ ".indexOn": ["uid"] }, "female":{ ".indexOn": ["uid"] }, ".read": "auth !=

Firebase Rules with facebook Authentication and Unique IDs

半腔热情 提交于 2020-12-06 12:03:27
问题 I'm looking for some advice or a possible solution with tightening up my firebase rules. This is my user tree in Firebase: users |_male |_uid |_female |_uid The UID will be an epoch timestamp when the account is created which will be a signed integer. These are the firebase rules which basically ensures the user has logged in and authenticated with Facebook before they can read or write to users: "users": { "male":{ ".indexOn": ["uid"] }, "female":{ ".indexOn": ["uid"] }, ".read": "auth !=

Firebase Token Authentication using Django

我是研究僧i 提交于 2020-12-06 06:54:47
问题 I am new to django and am trying to get the user authenticated using firebase admin sdk. I am trying to do token authentication and have setup the admin sdk in my django app. Also I have received the client id token in the android app. Now I am unable to understand how to send this id to the backend and verify it as a user and create users accordingly.I did find this answer but couldn't really understand how to go about this. Also if a user is verified how do I add and update its data. Do I

Caused by: java.lang.ClassNotFoundException: Didn't find class in Firebase Phone Authentication

倖福魔咒の 提交于 2020-12-05 11:50:21
问题 I'm using Phone Authentication in Android Studio via Firebase, I Enabled Phone SignIn and Add SHA-1 And SHA-256 in Firebase Project. here is all of my dependencies : dependencies { implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'com.google.android.material:material:1.2.1' implementation 'androidx.constraintlayout:constraintlayout:2.0.2' testImplementation 'junit:junit:4.13.1' implementation 'com.hbb20:ccp:2.4.0' implementation 'com.google.firebase:firebase-auth:20.0.0'

Caused by: java.lang.ClassNotFoundException: Didn't find class in Firebase Phone Authentication

微笑、不失礼 提交于 2020-12-05 11:48:05
问题 I'm using Phone Authentication in Android Studio via Firebase, I Enabled Phone SignIn and Add SHA-1 And SHA-256 in Firebase Project. here is all of my dependencies : dependencies { implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'com.google.android.material:material:1.2.1' implementation 'androidx.constraintlayout:constraintlayout:2.0.2' testImplementation 'junit:junit:4.13.1' implementation 'com.hbb20:ccp:2.4.0' implementation 'com.google.firebase:firebase-auth:20.0.0'

How to store username and photourl in firebase auth web

主宰稳场 提交于 2020-11-29 19:30:03
问题 I am trying out firebase auth. I want to store a photo-url and a username when the user signs up. My code for signing up - const email = signupForm['email'].value; const password = signupForm['password'].value; auth .createUserWithEmailAndPassword(email, password) .then((cred) => { console.log(cred); alert('done'); signupForm.reset(); }) .catch((error) => { console.log(error); alert(error); }); Could someone tell me how to add username and photo-url in signup. I know I can make a collection

How to store username and photourl in firebase auth web

我的梦境 提交于 2020-11-29 19:29:13
问题 I am trying out firebase auth. I want to store a photo-url and a username when the user signs up. My code for signing up - const email = signupForm['email'].value; const password = signupForm['password'].value; auth .createUserWithEmailAndPassword(email, password) .then((cred) => { console.log(cred); alert('done'); signupForm.reset(); }) .catch((error) => { console.log(error); alert(error); }); Could someone tell me how to add username and photo-url in signup. I know I can make a collection

Expo: “auth/operation-not-supported-in-this-enviroment”

会有一股神秘感。 提交于 2020-11-29 08:57:52
问题 I develop a react-native (expo) mobile app and try to sign in with a google account to firebase, but I get an error: "auth/operation-not-supported-in-this-enviroment. This operation is not supported in the enviroment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled" Code: loginGoogle() { var provider = new firebase.auth.GoogleAuthProvider(); provider.addScope('profile'); provider.addScope('email'); firebase.auth()