Skip to content

Commit b6a2b77

Browse files
committed
callbackUri
1 parent 7b1b5a8 commit b6a2b77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Home.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import gitlabLogo from './assets/images/gitlab.svg'
66
import trelloLogo from './assets/images/trello.svg'
77
import './Home.css'
88

9-
const base = window.location.href + 'callback'
9+
const callbackUrl = (setupable) => `${window.location.href}${setupable}/callback`
1010
const SETUPABLE = [
1111
{
1212
name: "GitHub",
1313
logo: githubLogo,
1414
enabled: true,
15-
url: 'https://github.com/login/oauth/authorize?client_id=0e8a63320fba47de145c&scope=repos&redirect_uri=' + base + '/github',
15+
url: 'https://github.com/login/oauth/authorize?client_id=0e8a63320fba47de145c&scope=repos&redirect_uri=' + callbackUrl('github'),
1616
},
1717
{
1818
name: "GitLab",

0 commit comments

Comments
 (0)