MCPcopy Create free account
hub / github.com/codecombat/codecombat / loginGPlusUser

Method loginGPlusUser

app/models/User.js:1103–1111  ·  view source on GitHub ↗
(gplusID, options = {})

Source from the content-addressed store, hash-verified

1101 }
1102
1103 loginGPlusUser (gplusID, options = {}) {
1104 options.url = '/auth/login-gplus'
1105 options.type = 'POST'
1106 options.xhrFields = { withCredentials: true }
1107 if (options.data == null) { options.data = {} }
1108 options.data.gplusID = gplusID
1109 options.data.gplusAccessToken = application.gplusHandler.token()
1110 return this.fetch(options)
1111 }
1112
1113 fetchFacebookUser (facebookID, fbAccessToken, options = {}) {
1114 if (options.data == null) { options.data = {} }

Callers 3

successMethod · 0.80
mergeLoginMethod · 0.80

Calls 2

tokenMethod · 0.45
fetchMethod · 0.45

Tested by

no test coverage detected