({ userID, name, email, facebookID }, options)
| 30 | }, |
| 31 | |
| 32 | signupWithFacebook ({ userID, name, email, facebookID }, options) { |
| 33 | if (options == null) { options = {} } |
| 34 | return fetchJson(this.url(userID, 'signup-with-facebook'), _.assign({}, options, { |
| 35 | method: 'POST', |
| 36 | credentials: 'include', |
| 37 | json: { name, email, facebookID, facebookAccessToken: application.facebookHandler.token() } |
| 38 | })) |
| 39 | }, |
| 40 | |
| 41 | signupWithGPlus ({ userID, name, email, gplusID }, options) { |
| 42 | if (options == null) { options = {} } |