dimanche 29 novembre 2015

Can't change session service name in torii

I'm using ember-simple-auth and emberfire to authenticate users on my app. One thing I don't like about the defaults is that there is both a "session" service and a "session" object on the service. So, I opened config/environment.js and changed:

var Env = {
  torii: {
    sessionServiceName: 'session',
    providers: {
      'firebase-simple-auth': {}
    }
   }
 ...

to

var Env = {
  torii: {
    sessionServiceName: 'auth',
    providers: {
      'firebase-simple-auth': {}
    }
   }
 ...

But, the newly named "auth" service doesn't have the "invalidate" and "authenticate" methods. Those are still on the "session" service (which I'm surprised is still around).

How do I move the entire "session" service over to an "auth" service?

Thanks!




Aucun commentaire:

Enregistrer un commentaire