ember-simple-auth自定义身份验证器在刷新时丢失部分数据

时间:2015-02-01 11:24:55

标签: ember.js ember-cli ember-simple-auth torii

我有一个自定义身份验证器,它继承自torii身份验证器:

https://github.com/wayne-o/sonatribe-ui/blob/master/app/authenticators/sonatribe-facebook.js

它可以登录,我可以在本地存储中看到会话数据:

{"authenticator":"authenticator:custom","userId":"698671479","accessToken":"********","provider":"facebook-connect","user_id":"1111","user":{"slug":null,"name":null,"username":null,"profilePictureUrl":"https://fbcdn-profile-a.akamaihd.net/hprofile-ak-xfp1/v/t1.0-1/p111x111/10325277_","auth":"1111","eventsAttending":[]}}

然而,在刷新大部分数据后,我就离开了:

{"authenticator":"authenticator:custom","provider":"facebook-connect"}

我缺少哪一部分,以便我的所有会话数据都能重新补充?

0 个答案:

没有答案