docs: 🐛 try oauth keys without .env
Signed-off-by: slumbering <slumbering.pierrot@gmail.com>
This commit is contained in:
parent
4099fa5b9a
commit
126cd00623
@ -10,8 +10,8 @@ async function getAccessToken(code) {
|
|||||||
const getAccessToken = await AxiosInstance.get('https://github.com/login/oauth/access_token', {
|
const getAccessToken = await AxiosInstance.get('https://github.com/login/oauth/access_token', {
|
||||||
params: {
|
params: {
|
||||||
code,
|
code,
|
||||||
client_id: process.env.REACT_APP_CLIENT_ID,
|
client_id: 'cd8f9be2562bfc8d6cfc',
|
||||||
client_secret: process.env.REACT_APP_CLIENT_SECRET,
|
client_secret: '2509358055095d52dfd7331d072f378e7f16940f',
|
||||||
},
|
},
|
||||||
validateStatus: function (status) {
|
validateStatus: function (status) {
|
||||||
return status < 500; // Resolve only if the status code is less than 500
|
return status < 500; // Resolve only if the status code is less than 500
|
||||||
|
@ -7,7 +7,7 @@ export default function DocAuthentication() {
|
|||||||
<div className={style.container}>
|
<div className={style.container}>
|
||||||
<h1 className={style.h1}>Welcome on Dagger documentation</h1>
|
<h1 className={style.h1}>Welcome on Dagger documentation</h1>
|
||||||
<p>Please Sign in to Github in order to get access to the doc</p>
|
<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>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
@ -178,6 +178,7 @@ function DocPage(props) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// END CUSTOM DOCPAGE
|
// END CUSTOM DOCPAGE
|
||||||
|
|
||||||
if (!currentDocRoute) {
|
if (!currentDocRoute) {
|
||||||
|
Reference in New Issue
Block a user