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

Method initClass

app/core/social-handlers/GitHubHandler.js:16–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14module.exports = (GitHubHandler = (function () {
15 GitHubHandler = class GitHubHandler extends CocoClass {
16 static initClass () {
17 this.prototype.scopes = 'user:email'
18
19 this.prototype.subscriptions =
20 { 'auth:log-in-with-github': 'commenceGitHubLogin' }
21 }
22
23 constructor (application) {
24 if (!me.useSocialSignOn()) { throw new Error('Social single sign on not supported') }

Callers 1

GitHubHandler.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected