firebase-authentication

FirebaseError: invalid stream token

≯℡__Kan透↙ 提交于 2020-07-22 05:21:50
问题 After changing a cloud function I’m getting the following error for any write operation to my database: FirebaseError: invalid stream token . After changing the functions back and redeploying, the error still remains. I was unable to find any reference to this error in Firebase docs. Anyone know what this is about? 回答1: I "solved" this. For anyone else who runs into the error: > rm package-lock.json > rm -rf node-modules/ > npm install Would still be nice to have a reference to this somewhere

FirebaseError: invalid stream token

狂风中的少年 提交于 2020-07-22 05:21:33
问题 After changing a cloud function I’m getting the following error for any write operation to my database: FirebaseError: invalid stream token . After changing the functions back and redeploying, the error still remains. I was unable to find any reference to this error in Firebase docs. Anyone know what this is about? 回答1: I "solved" this. For anyone else who runs into the error: > rm package-lock.json > rm -rf node-modules/ > npm install Would still be nice to have a reference to this somewhere

Firebase auth expires after 1 hr

China☆狼群 提交于 2020-07-21 07:25:35
问题 I am able to allow users to log in to Firebase using email and password. I followed these instructions: https://firebase.google.com/docs/reference/rest/auth/#section-sign-in-email-password However, after 1 hr it seems the auth expires and I can't use my app anymore. Does anybody know how I can extend that hour? I have read MULTIPLE posts with very similar questions, but I can't find a clear answer. IT seems some people think there is a way to obtain a reauth token or something like that, but

How to add data from firestore to my spinner

你。 提交于 2020-07-20 04:23:44
问题 Login in the app is solely done by otp method. so first i retrieve the society in the which the mobile no. is registered. then i want to populate my spinner with all tower names of that society only. the structure of firestore form where society name is received is mobile |-----(mobile no.) | |----society:"name of society" | and the structure of the collection having the names of society tower_list |----(name of tower) | |-----name:"name of tower" | |-----society:"name of society" the main

Firebase Auth Ui Google Sign In Code:10, message:10:

不想你离开。 提交于 2020-07-17 05:23:35
问题 Firebase Auth Ui Google Sign In Code:10, message:10: I use firebase auth-ui to sign in with google, it toasted Code:10, message:10: implementation 'com.firebaseui:firebase-ui-auth:4.1.0' 回答1: Google this days are making simple things complicated. The problem is the third key, 1- The debug key 2- The release key 3- Google Play App signing key You need THREE keys to figure out ONE Google SignIn. Does facebook also need three keys? Maybe one day google will need 30 keys. 回答2: These tips have

Restrict Firebase authentication to a certain domain

橙三吉。 提交于 2020-07-15 08:19:12
问题 I want to restrict the Firebase Authentication only by ne mail domain name, to make this mail access to my application : exemple@exemple.fr I did this in the database side of firebase { "rules": { ".read": "auth.token.email.endsWith('@exemple.fr')", ".write": "auth.token.email.endsWith('@exemple.fr')" } } I think i'm doing something wrong, thank you for your help. 回答1: Try this { "rules": { ".read": "auth.token.email.matches(/.*@exemple.fr$/)", ".write": "auth.token.email.matches(/.*@exemple

Restrict Firebase authentication to a certain domain

ⅰ亾dé卋堺 提交于 2020-07-15 08:17:01
问题 I want to restrict the Firebase Authentication only by ne mail domain name, to make this mail access to my application : exemple@exemple.fr I did this in the database side of firebase { "rules": { ".read": "auth.token.email.endsWith('@exemple.fr')", ".write": "auth.token.email.endsWith('@exemple.fr')" } } I think i'm doing something wrong, thank you for your help. 回答1: Try this { "rules": { ".read": "auth.token.email.matches(/.*@exemple.fr$/)", ".write": "auth.token.email.matches(/.*@exemple

How to save extra info during user signup process using firebase authentication

半世苍凉 提交于 2020-07-15 06:24:09
问题 I'm building a website where I've integrated firebase authentication for login/signup of site users. Users can login/signup via either email-password or mobile OTP method. I'm using official firebase js Auth UI Widget: firebaseui-web for this authentication process. While signup, I also want to capture additional user details like full name, gender, age etc. I found 2 approaches on the web for this: Store extra info in firestore after successful signup. Issue with this approach is I want to

Android FirebaseUI sign in with Google error for release key

天大地大妈咪最大 提交于 2020-07-14 07:12:25
问题 I'm getting the the Developer (Code:10, message:10:) error when trying to sign in using Google Sign-in while using FirebaseUI's Authentication. All works well on development, but when I sign my bundle using my upload key and then run it on a device, it fails. I looked at associated questions here, here and here and the answers didn't help. As you'll see below, I've tried their recommendations. What I've tried: Add SHA1 fingerprints to the Project Settings at the Firebase Console for debug,

How to use firebase login with email and password on Android

主宰稳场 提交于 2020-07-11 04:19:53
问题 When I tried to follow the Firebase website for tutorial (https://www.firebase.com/docs/web/guide/login/password.html) on developing a simple login on android studio, I faced error, with red wiggly lines. Could someone help me or suggest a good place to learn about step by step tutorial on how to create a simple login using firebase. Resources on firebase login for android are very limited online. Would be great if someone could help me . This is the code copied from firebase website for