【发布时间】:2015-11-30 01:25:10
【问题描述】:
我正在使用 ember-simple-auth 和 emberfire 在我的应用上对用户进行身份验证。我不喜欢默认设置的一件事是,服务上同时存在“会话”服务和“会话”对象。于是,我打开config/environment.js,改了:
var Env = {
torii: {
sessionServiceName: 'session',
providers: {
'firebase-simple-auth': {}
}
}
...
到
var Env = {
torii: {
sessionServiceName: 'auth',
providers: {
'firebase-simple-auth': {}
}
}
...
但是,新命名的“auth”服务没有“invalidate”和“authenticate”方法。那些仍在“会话”服务上(我很惊讶仍然存在)。
如何将整个“会话”服务转移到“身份验证”服务?
谢谢!
【问题讨论】:
标签: session ember.js firebase ember-simple-auth