firebase-authentication

Firebase: Uncaught TypeError: Cannot read property 'signInWithEmailAndPassword'

两盒软妹~` 提交于 2019-12-11 04:36:14
问题 I'm doing simple signup by following YT tuts, link (https://www.youtube.com/watch?v=-OKrloDzGpU) There i have this script in app.js and i'm getting error Uncaught TypeError: Cannot read property 'signInWithEmailAndPassword' of undefined at HTMLInputElement.btnLogin.addEventListener.e (app.js:26) // GET Users info const txtEmail = document.getElementById('txtEmail'); const txtPassword = document.getElementById('txtPassword'); const btnLogin = document.getElementById('btnLogin'); const

How to get provider access token in Firebase functions?

耗尽温柔 提交于 2019-12-11 04:34:26
问题 I'm planning to write Firebase function on Authentication user creation. My goal is to get the long live access token for the Facebook user page's. To do that I need user access token in Firebase functions. Tried below.., exports.saveLongLiveToken = functions.auth.user().onCreate(event => { console.log(event.providerData) }) I though providerData will have the information about the Facebook credentials, but not instead I got only undefined. Note: In the event, I got below { data: {

Firebase link user authentication to another activity

守給你的承諾、 提交于 2019-12-11 04:31:03
问题 I have say a user who signs in to my app using one activity via Firebase, can I access the user's details in the next activity. Eg: Login class: public class LoginActivity extends AppCompatActivity { EditText editText; EditText editText2; Button button; public FirebaseAuth Auth = FirebaseAuth.getInstance(); public FirebaseAuth.AuthStateListener authlistener; String email, pass; ProgressBar bar; public View.OnClickListener buttonListener = new View.OnClickListener() { public void onClick (View

rollup: Use of eval is strongly discouraged, as it posses security risks

孤人 提交于 2019-12-11 04:25:41
问题 I have this error in firebase/auth.js and firebase/database.js: rollup: Use of eval is strongly discouraged, as it posses security risks This must be error in firebase node_module! I can't understand what's going on. It's working When I remove firebase.initializeApp(config) But, having same error on adding above. 回答1: Using Firebase v3 in Ionic2 Via NPM is not working at all!! Had lot's of problems in their node module. So, I found a solution.. follow the link below, where discussion has been

Access Youtube Channel ID once signed in though Firebase GoogleAuthProvider

浪子不回头ぞ 提交于 2019-12-11 04:24:56
问题 I've setup a basic Firebase authentication app which uses Google. I've passed the following scopes: https://www.googleapis.com/auth/youtube.force-ssl When logging in, it states that it is gaining permission to manage my Youtube Account, but the response I get back has nothing relevant to Youtube in it, such as a channelId. Even when doing a simple $http.get request against the logged in accounts Youtube subscriptions I get the following response: The request uses the <code>mine</code>

Firebase database secure without firebase auth

这一生的挚爱 提交于 2019-12-11 04:24:55
问题 I have an app published on the play store, I want to implement firebase in the app. I have read all the documentation and I have two doubts: If someone use apk decompiler with my app and get the googleservices.json, they can do whatever they want with the database? It is possible that my database is secure without having the user logged-in? I would appreciate any help 回答1: The fact that someone can read your googleservices.json doesn't involve security holes. If you configured your Firebase

Firebase phone authentication in android - same code doesn't work on different machines

独自空忆成欢 提交于 2019-12-11 04:23:56
问题 I have integrated Firebase phone authentication in my android project. For this I have followed all the steps given in this link. All works fine on my machine, Also I pushed this code to git. Now when another user pulls that code, it doesn't work on his machine. Error he is getting is - com.google.firebase.FirebaseException: An internal error has occurred. [ INVALID_APP_CREDENTIAL:App validation failed ] I have searhed for this error, but everywhere I found is - Put your SHA1 key Enable

Different permissions Firebase Auth

非 Y 不嫁゛ 提交于 2019-12-11 04:18:37
问题 I always use firebase to login authentication, but this time I've a problem. My new application works with two types of users, the admin and the normal users. How can I distinguish these two types in firebase? 回答1: You can use Firebase Database with an object combining Firebase UserId and Role public class User { public String userId; public String role; public User(String userId, String role) { this.username = username; this.email = email; } } To write : mDatabase = FirebaseDatabase

Checking user is password authenticated or with some provider

∥☆過路亽.° 提交于 2019-12-11 04:06:39
问题 I have simple user and password, Facebook and Google authentication in my application. And I want to do different actions on the password Authenticated user. Code FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser(); if (user != null) { for (UserInfo profile : user.getProviderData()) { // Id of the provider (ex: google.com) String providerId = profile.getProviderId(); if(providerId.equals("facebook.com") | providerId.equals("google.com")) { Toast.makeText(this,"fb or goole method

How to know which exactly new entry is added in firebase DB?

浪尽此生 提交于 2019-12-11 04:05:06
问题 My app is divided into 2 sections, user and admin. Admin can add/delete new items in firebase db/node and which is get reflected into user app. Consider, user app is open all the time and update list with below code. mFirebaseDatabase.addValueEventListener(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { arrayList.clear(); for (DataSnapshot dataSnapshotChild : dataSnapshot.getChildren()) { for (DataSnapshot snapshot : dataSnapshotChild.getChildren())