Rotate test OAuth2 token

This commit is contained in:
Tuan Dang
2022-12-14 18:43:21 -05:00
parent 787e54fb91
commit a49fcf49f1
2 changed files with 2 additions and 5 deletions

View File

@ -18,9 +18,6 @@ export default function Netlify() {
useEffect(async () => {
if (state === localStorage.getItem('latestCSRFToken')) {
localStorage.removeItem('latestCSRFToken');
// http://localhost:8080/netlify?code=qnG0g_krhklWDpdUqfhU-t1sLeZzYI3gF2d6QVnL-Gc&state=3a78cd3154a9a99ddd4eb5d99dbb3289
// http://localhost:8080/netlify#access_token=d-78qUAnnSzvlgfG9Y_oUV6_4TQBxLbofImiBbKAjzE&token_type=Bearer&state=5da34fa49e301e9fa1a6e40925694b77
await AuthorizeIntegration({
workspaceId: localStorage.getItem('projectData.id'),
@ -28,7 +25,7 @@ export default function Netlify() {
integration: "netlify"
});
// router.push("/integrations/" + localStorage.getItem("projectData.id"));
router.push("/integrations/" + localStorage.getItem("projectData.id"));
}
try {

View File

@ -21,7 +21,7 @@
"image": "Netlify",
"isAvailable": true,
"type": "oauth2",
"clientId": "frGheMeEzVEUgM5yHLcPeTj9kYJhYvqkR5IkSexOS50",
"clientId": "fYWBhD3gt0pT62UIwYrlGRcy--pPVLYIQad6ORrES9o",
"redirectURL": "http://localhost:8080/netlify"
},
{