Create user Email/Password Auth method
See original GitHub issueHello every one, I’m trying to create a user management area in my app, but something is wrong. I’m using the basic method in in the firebase documentation firebase.auth().createUserWithEmailAndPassword(email, password) but time to execute the action an error displays
firebase.js:50 Uncaught Error: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp()
I was searching in the guides and the torii provider for the implementation but nothing shows related with the user admin.
I try to find the auth using this.get(‘auth’) as the session object but return undefined. Here is my code.
addUser () {
var that = this,
ctrl = that.get('controller');
//Here is where throw the error
//Even I try to use that.get('auth')
firebase.auth()
.createUserWithEmailAndPassword(ctrl.email, ctrl.password)
.catch(function(error){
Ember.set(that.currentModel, 'error', true);
Ember.set(that.currentModel, 'errorMessage', error.message);
});
}
Thank you for the help!
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Authenticate with Firebase using Password-Based Accounts ...
In the Firebase console, open the Auth section. On the Sign in method tab, enable the Email/password sign-in method and click Save. Create...
Read more >Firebase For Web: Authentication - Auth with Email ... - Medium
Firebase Authentication provides backend services, easy-to-use SDKs, and ready-made UI libraries to authenticate ... //Create User with Email and Password
Read more >Email and Password Authentication - A Complete Guide to ...
Email /password authentication is probably the most popular method of authentication used today. It allows users to register and sign in to our...
Read more >Passwordless Authentication with Email - Auth0
Navigate to Auth0 Dashboard > Authentication > Passwordless, and enable the Email switch. Select your Email Syntax, and enter your email's From, Subject,...
Read more >Set up an email address as your verification method
Password reset authentication only. You'll need to choose a different method for two-factor verification. Set up your email address from the Security info...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We should cover this in our docs, we only really mention social sign in
I found the issue, in the future reference you can add an example hoy to inject the service to work with the object firebase, here the solution:
Sorry for bother and hope this will help others