()
| 158 | this._accessToken = token |
| 159 | } |
| 160 | get loginLink () { |
| 161 | const githubOauthUrl = 'https://github.com/login/oauth/authorize' |
| 162 | const { clientID } = this.options |
| 163 | const query = { |
| 164 | client_id: clientID, |
| 165 | redirect_uri: window.location.href, |
| 166 | scope: 'public_repo' |
| 167 | } |
| 168 | return `${githubOauthUrl}?${queryStringify(query)}` |
| 169 | } |
| 170 | get isAdmin () { |
| 171 | const { admin } = this.options |
| 172 | const { user } = this.state |
nothing calls this directly
no test coverage detected