hoodiehq / ember-hoodie

Build awesome offline-first Ember apps with Hoodie!
MIT License
17 stars 6 forks source link

TypeError: this.get('hoodieAccount').signIn/Out/Up is not a function #19

Open arunprasadr-zz opened 8 years ago

arunprasadr-zz commented 8 years ago

I’ve encountered the following error when i tried to signUp or signIn. The console throws the following error: TypeError: this.get('hoodieAccount').signIn is not a function within the signIn action.

I have the service included in my application controller. hoodieAccount: service('hoodie-account'),

arunprasadr-zz commented 8 years ago

I had to use the following to fix this. (thanks @gr2m) hoodie: service('hoodie'), in signIn action this.get('hoodie.account').signIn({ username, password })