Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
🎨 Add default site_url for netlify oauth handler for development
Browse files Browse the repository at this point in the history
  • Loading branch information
wei committed May 22, 2018
1 parent fd03a47 commit edb40ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper/gh-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const setLocalAccessToken = (token = '') => {

const triggerLogin = () => {
return new Promise((resolve, reject) => {
new Authenticator({}) // {site_id: 'new-issue.org'}
new Authenticator({ site_id: window.location.host.match(/localhost/i) && 'new-issue.org' })
.authenticate({provider: 'github', scope: 'public_repo'},
(err, data) => {
if (err) return reject(err)
Expand Down

0 comments on commit edb40ea

Please sign in to comment.