Skip to content

Instantly share code, notes, and snippets.

@jacobthemyth

jacobthemyth/auth.js

Created Oct 20, 2014
Embed
What would you like to do?
var email = "email";
var password = "password";
var data = {email: email, password: password};
Application.ref.createUser(data, function(error){
if(! error ){
ref.authWithPassword(data, function(error, authData){
if( ! error && authData ){
data.id = authData.uid;
var user = self.store.createRecord('user', data);
user.save();
}
})
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.