docs: 🐛 try oauth keys without .env
Signed-off-by: slumbering <slumbering.pierrot@gmail.com>
This commit is contained in:
parent
1a4f657a2f
commit
a12e08bd76
@ -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
|
||||
|
@ -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>
|
||||
)
|
||||
}
|
@ -178,6 +178,7 @@ function DocPage(props) {
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
// END CUSTOM DOCPAGE
|
||||
|
||||
if (!currentDocRoute) {
|
||||
|
Reference in New Issue
Block a user