diff --git a/website/src/api/github.js b/website/src/api/github.js index 30ff6bfb..435e097b 100644 --- a/website/src/api/github.js +++ b/website/src/api/github.js @@ -10,8 +10,8 @@ async function getAccessToken(code) { const getAccessToken = await AxiosInstance.get('https://github.com/login/oauth/access_token', { params: { code, - client_id: process.env.REACT_APP_CLIENT_ID, - client_secret: process.env.REACT_APP_CLIENT_SECRET, + client_id: 'cd8f9be2562bfc8d6cfc', + client_secret: '2509358055095d52dfd7331d072f378e7f16940f', }, validateStatus: function (status) { return status < 500; // Resolve only if the status code is less than 500 diff --git a/website/src/components/DocPageAuthentication.js b/website/src/components/DocPageAuthentication.js index d1bb5e3f..2f8f6667 100644 --- a/website/src/components/DocPageAuthentication.js +++ b/website/src/components/DocPageAuthentication.js @@ -7,7 +7,7 @@ export default function DocAuthentication() {

Welcome on Dagger documentation

Please Sign in to Github in order to get access to the doc

- window.location.href = `//github.com/login/oauth/authorize?client_id=${process.env.REACT_APP_CLIENT_ID}&scope=user&allow_signup=false`} /> + window.location.href = `//github.com/login/oauth/authorize?client_id=cd8f9be2562bfc8d6cfc&scope=user&allow_signup=false`} />
) } \ No newline at end of file diff --git a/website/src/theme/DocPage/index.js b/website/src/theme/DocPage/index.js index 9e512ad6..447b81cf 100644 --- a/website/src/theme/DocPage/index.js +++ b/website/src/theme/DocPage/index.js @@ -178,6 +178,7 @@ function DocPage(props) { ) } + // END CUSTOM DOCPAGE if (!currentDocRoute) {