Weibo user ids are strings again

This commit is contained in:
Avital Oliver
2013-04-13 20:39:55 -07:00
parent 7c12ba95d9
commit 17246ff23d

View File

@@ -6,7 +6,10 @@ Accounts.oauth.registerService('weibo', 2, function(query) {
return {
serviceData: {
id: uid,
// We used to store this as a string, so keep it this way rather than
// add complexity to Account.updateOrCreateUserFromExternalService or
// force a database migration
id: uid + "",
accessToken: response.access_token,
screenName: identity.screen_name,
expiresAt: (+new Date) + (1000 * response.expires_in)