docs: 🐛 try oauth keys without .env

Signed-off-by: slumbering <slumbering.pierrot@gmail.com>
This commit is contained in:
slumbering 2021-06-11 16:39:08 +02:00
parent 4099fa5b9a
commit 126cd00623
3 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -7,7 +7,7 @@ export default function DocAuthentication() {
<div className={style.container}>
<h1 className={style.h1}>Welcome on Dagger documentation</h1>
<p>Please Sign in to Github in order to get access to the doc</p>
<GithubLoginButton className={style.btn__github} onClick={() => window.location.href = `//github.com/login/oauth/authorize?client_id=${process.env.REACT_APP_CLIENT_ID}&scope=user&allow_signup=false`} />
<GithubLoginButton className={style.btn__github} onClick={() => window.location.href = `//github.com/login/oauth/authorize?client_id=cd8f9be2562bfc8d6cfc&scope=user&allow_signup=false`} />
</div>
)
}

View File

@ -178,6 +178,7 @@ function DocPage(props) {
)
}
// END CUSTOM DOCPAGE
if (!currentDocRoute) {