MCPcopy
hub / github.com/gitalk/gitalk / loginLink

Method loginLink

src/gitalk.jsx:160–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

queryStringifyFunction · 0.90

Tested by

no test coverage detected