0
登錄我用流星搭配套餐:如何總是電子郵件用戶Github上
accounts-ui 1.0.0 Simple templates to add login widgets to an app
accounts-password 1.0.0 Password support for accounts
accounts-github 1.0.0 Login service for Github accounts
我需要得到電子郵件,當用戶註冊使用Github的帳戶。我使用的客戶端代碼:
Accounts.ui.config({
requestPermissions: {
github: ['user:email']
}
});
然而,當我註冊了,比我在控制檯中看到:
Meteor.user()
...
{"_id":"(redacted)",
"profile":{"name":"Jacek Migdal"},
"services":{
"github": {"accessToken":"(redacted)","email":null,"id":(redacted),"username":"jakozaur"},
"resume":{"loginTokens":[{"when":"2014-09-01T19:20:50.655Z","hashedToken":"(redacted)"}]}},
"createdAt":"2014-09-01T19:18:08.064Z"
}
爲什麼我在電子郵件領域得到null
?這是一個錯誤還是我做錯了?
FYI:在流星0.9.1它曾作爲我的預期。 Github或Meteor都爲我解決了這個問題。歡呼! – Jakozaur 2014-09-07 22:39:50