src/github.js
Function exports
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = (apiBaseUrl, loginBaseUrl) => {
const urls = getApiEndpoints(apiBaseUrl, loginBaseUrl || apiBaseUrl);
return {
getAuthorizeUrl: (client_id, scope, state, response_type) =>
`${urls.oauthAuthorize}?client_id=${client_id}&scope=${encodeURIComponent(