firebase-authentication

Firebase User ID Allowed Characters

不想你离开。 提交于 2019-12-06 01:30:52
I am creating a key combining two Firebase user IDs, such as . Would anyone know the character set of which Firebase User IDs are comprised of? Ideally, the delimiter should not be in the possible character set forming the Firebase user IDs. (P.S.: Am planning on using underscore "_" or double underscore "__" as the delimiter). The auto generated latest version Firebase uids are alphanumeric with no dashes or underscores. The previous version of Firebase used uuid for uids. So those contained dashes. That said, if you are creating your own users via the admin sdk, you can specify dashes and

firebase phone authentication not working after .apk released in play store even after I have updated sha1 in firebase console

*爱你&永不变心* 提交于 2019-12-06 01:07:59
问题 Firebase phone authentication not working after .apk released in play store even after I have updated sha1 in firebase console after that I have generated google- services.json again and updated json file in android studio project. There was many other sha1 was also present in firebase console project setting should I delete them before generating new google-services.json 回答1: When you upload an apk to the play store then play store creates a new certificates called "App signing certificate".

Is Firebase Auth's local (persisted auth state) secure and safe from XSS and CSRF for browsers?

别等时光非礼了梦想. 提交于 2019-12-06 00:59:51
I am using Firebase Auth for a web app that involves financial transactions. Thus, security is the most important thing for my app. According to this doc , Firebase can persist its token across multiple sessions by storing it somewhere. It does not mention how safe it is from XSS. Of course, I can just assume it's safe because it's Google, but I want to know more about it. We've all read articles noting how localStorage is unsafe for storing auth, and cookie + csrf token + jwt + httpOnly is more secure way to handle auth for browsers. How does Firebase store its token? Does it use localStorage

How to add username with email and password in Firebase?

杀马特。学长 韩版系。学妹 提交于 2019-12-06 00:43:29
问题 I'm using Firebase and I'm trying to add a username to the database with the email and password. Is there a way to do it or is createUserWithEmailAndPassword() function only for email and password? signUp.addEventListener("click", function(user) { var username = usernameTxt.value; var email = emailTxt.value; var password = passwordTxt.value; firebase.auth().createUserWithEmailAndPassword(email, password).catch(function(error) { // Handle Errors here. var errorCode = error.code; var

Firebase 3.0 session persistance

99封情书 提交于 2019-12-06 00:13:14
问题 It seems impossible to use session persistence in firebase 3.0. This was possible in the previous version: https://www.firebase.com/docs/web/guide/login/password.html authWithPassword() takes an optional third parameter which is an object containing any of the following settings: remember - String If not specified - or set to default - sessions are persisted for as long as you have configured in the Login & Auth tab of your App Dashboard. To limit persistence to the lifetime of the current

Android Firebase Authentication not working

陌路散爱 提交于 2019-12-05 22:36:39
For my Android application, I'm trying to use Firebase to authentication and data storage. Right now, I'm stuck on authentication. When my application loads, an error stacktrace appears in the Android Studio console. W/GooglePlayServicesUtil: Cannot find Google Play services package name. android.content.pm.PackageManager$NameNotFoundException: com.google.android.gms at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:137) at com.google.android.gms.internal.zzrt.getPackageInfo(Unknown Source) at com.google.android.gms.common.zze.zzby(Unknown Source) at com

Flutter Firebase.signInWithGoogle method not found

╄→尐↘猪︶ㄣ 提交于 2019-12-05 22:35:45
I am trying to add Google Authentication in my Flutter Application. But my Android studio is not able to find the method signInWithGoogle under FirebaseAuth class. I mean to say when I write FirebaseAuth. signInWithGoogle Android studio complains saying The method signInWithGoogle isn't defined for the class Firebase . I already have the have Firebase.signInWithEmailAndPassword and it is working fine. I have below dependency in pubspec.yaml firebase_auth: ^0.8.0+1 Below are my imports in the class... import 'package:firebase_auth/firebase_auth.dart'; import 'package:flutter/material.dart';

Is it possible to use Cypress e2e testing with a firebase auth project?

有些话、适合烂在心里 提交于 2019-12-05 21:51:59
问题 I am exploring Cypress for e2e testing, looks like great software. The problem is Authentication, the Cypress documentation explains why using the UI is very bad here. So I tried looking at the network tap of my application, to see if I could create a POST request to the firebase API, and authenticate without using the GUI. But I can see that there at least 2 request fired, and token saved to application storage. So what approach should I use? Authenticate with the UI of my application, and

Firebase authentication taking too long from Android Device

女生的网名这么多〃 提交于 2019-12-05 21:44:16
I am using Firebase to register and log users with different providers (google, facebook and email). I have been using this functionality for three month and so far it has worked fine. However, at this moment, when I make the first login after installing the app, it takes more than 10 seconds. I have traced the behavior and I find this listener is causing the delay. private FirebaseAuth firebaseAuth; ... firebaseAuth.signInWithCredential(credential).addOnSuccessListener(new OnSuccessListener<AuthResult>() { @Override public void onSuccess(AuthResult authResult) { // This function is called

Firebase Auth - list of users by Custom Claims

蹲街弑〆低调 提交于 2019-12-05 21:32:37
We're using Custom Claims in Firebase Auth to manage access in Firebase and allow custom UI experience. We're now working on the User Admin part and we can't find a way to retrieve users by the custom claims. For example, a user belongs to an organization and have different access level - admin or user. We need to allow the organization's admin to see all their organization's users. We'd like to avoid using a separate database to manage organization users to not double up the data. Is it possible? Can we retrieve all Auth users while filtering them by specific Custom Claim? Thanks! There is no