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

Method linkGPlusUser

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

Source from the content-addressed store, hash-verified

1090 }
1091
1092 linkGPlusUser (gplusID, email, options = {}) {
1093 options.url = `/db/user/${this.id}/link-with-gplus`
1094 options.type = 'POST'
1095 options.xhrFields = { withCredentials: true }
1096 if (options.data == null) { options.data = {} }
1097 options.data.gplusID = gplusID
1098 options.data.gplusAccessToken = application.gplusHandler.token()
1099 options.data.email = email
1100 return this.fetch(options)
1101 }
1102
1103 loginGPlusUser (gplusID, options = {}) {
1104 options.url = '/auth/login-gplus'

Callers

nothing calls this directly

Calls 2

tokenMethod · 0.45
fetchMethod · 0.45

Tested by

no test coverage detected