firebase-authentication

Firebase : How to send a password reset email backend with NodeJs

霸气de小男生 提交于 2019-12-04 16:30:29
I'm trying to impliment the code as found here: https://firebase.google.com/docs/auth/web/manage-users#send_a_password_reset_email var auth = firebase.auth(); var emailAddress = "user@example.com"; auth.sendPasswordResetEmail(emailAddress).then(function() { // Email sent. }).catch(function(error) { // An error happened. }); But I can't find the sendPasswordResetEmail method in firebase admin. Anyway I can do this on the backend? ORIGINAL JULY 2018 ANSWER: The sendPasswordResetEmail() method is a method from the client-side auth module, and you're right, the Admin-SDK doesn't have it - or

How to set hash-key option for auth:import after default auth:export in firebase?

你说的曾经没有我的故事 提交于 2019-12-04 16:26:57
问题 I've got my users exported the in CLI: firebase auth:export my_users.json The passwords in the exported file should be hashed with SCRYPT, because as the documentation states: auth:export command only exports passwords hashed using the scrypt algorithm, which is used by the Firebase backend. Account records with passwords hashed using other algorithms are exported with empty passwordHash and salt fields. Projects might have passwords hashed with other algorithms after importing user records

Cordova inAppBrowser won't work with firebaseAuth

青春壹個敷衍的年華 提交于 2019-12-04 16:26:52
I am building a hybrid app using the ionic framework. I'm using angularFire 2.0 with Firebase 3.0. I have the cordova plugin "inAppBrowser" installed. In the depreciated Firebase documents, that's all I need to have authWithOAuthPopup() fire up an inAppBrowser window and do the login process. Currently, I am using signInWithPopup() and it does nothing in my iOS app. The app works fine in browser using ionic serve. Firebase 3.0 signInWithPopup/Redirect is not currently supported in a Cordova environment even with inAppBrowser plugin installed. Until this is supported, you can use other plugins

How to make sure a user can only see and access their own data in firebase?

醉酒当歌 提交于 2019-12-04 16:05:42
I am new to firebase. In my Android app, I want each user to only access the data he created. I was reading https://www.firebase.com/docs/security/guide/securing-data.html , but didn't make much sense out of it. Assuming I am already logged in with an email and password, How can should I write the Firebase Rules? How do write to my Firebase data in my Android Java code? Thanks! Firebase Rules { "rules": { ".read": true, ".write": true } } Java Code myFirebaseRef.child("message").setValue("This is the message"); Thanks to Joey Roosing, I was able to figure out the rest of it. I need to group

How to know which user is trying to Sign-in?

僤鯓⒐⒋嵵緔 提交于 2019-12-04 15:51:30
问题 Users are created using Email and Password. This is how I do the Sign-up: mSignup.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { mEmailStr = removeSpaces(mEmail.getText().toString()); mPasswordStr = mPassword.getText().toString(); mUsernameStr = mUsername.getText().toString(); mIsSgl = mSglCheckBox.isChecked(); mUsernameStr=mUsername.getText().toString(); final User mUser = new User(); mUser.setEmail(mEmailStr); mUser.setPassword(mPasswordStr); mUser

Client doesn't have permission to access the desired data in Firebase

╄→尐↘猪︶ㄣ 提交于 2019-12-04 15:47:04
问题 I have a page that is calling addCheckin() method which is inside a controller. In the controller, I am trying to create a reference as follows: var ref = firebase.database().ref("users/" + $scope.whichuser + "/meetings/" +$scope.whichmeeting + "/checkins"); $scope.whichuser and $scope.whichmeeting are the $routeParams that I am passing from another route. Here's my checkin controller- myApp.controller("CheckinsController", ['$scope','$rootScope','$firebaseArray','$routeParams','

FirebaseUI Auth library: Google sign in fails with: W/AuthMethodPicker: Firebase login unsuccessful

时光总嘲笑我的痴心妄想 提交于 2019-12-04 14:52:23
Using the available online documentation and this video: https://www.youtube.com/watch?v=0ucjYG_JrEE , I'm trying to start apply the new UI Auth library. Mail sign in works great, the Google sign in not: it gives a warning and the UI keeps showing the "Loading..." dialog. final FirebaseAuth auth = FirebaseAuth.getInstance(); auth.addAuthStateListener(new FirebaseAuth.AuthStateListener() { @Override public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) { FirebaseUser usr = firebaseAuth.getCurrentUser(); if (usr != null){ Log.d( TAG, "User signed in correctly: " + usr ); auth

Flutter Stream Builder Triggered when Navigator Pop or Push is Called

烈酒焚心 提交于 2019-12-04 13:53:59
I have a stream builder in the app's home/root page. This stream builder gets triggered whenever I do a page-navigation elsewhere, which has nothing to do with the stream itself. My understanding, according to here and here , is when a page is popped/pushed in the navigator, it triggers a rebuild on the app, so the stream builder gets re-attached and so it fires. However this seems inefficient, so is there a way to prevent the stream builder from firing when a page is popped/pushed? Additionally, according to the logs, when I push a page, the page is built and shown first, then the stream

firebase: “Could not parse auth token.”

筅森魡賤 提交于 2019-12-04 13:46:01
问题 Hello i am using firebase with php and using this library. I am getting this error."Could not parse auth token." My auth token is correct because i have used same token with node.js also. my code looks like this require "vendor/autoload.php"; const DEFAULT_URL = 'https://xxxxxxxxx.firebaseio.com'; const DEFAULT_TOKEN = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; $firebase = new \Firebase\FirebaseLib(DEFAULT_URL, DEFAULT_TOKEN ); $data = [ "Website_Name"=> $Website_Name, "Username" => $Username,

Firebase 3.2.0 - Internal Error on Create User

戏子无情 提交于 2019-12-04 13:42:24
问题 I've just kicked off a new project (Swift 2.2; iOS 9; Xcode 7.3.1) using Firebase 3.2.0 and have hit the following error as part of my authorise/signup process when entering both an invalid email and a weak password: NSError Error Domain=FIRAuthErrorDomain Code=17999 "An internal error has occurred, print and inspect the error details for more information." UserInfo={error_name=ERROR_INTERNAL_ERROR, NSUnderlyingError=0x7c0549a0 {Error Domain=FIRAuthInternalErrorDomain Code=3 "(null)" UserInfo