Skip to content

Commit

Permalink
Rotate test OAuth2 token
Browse files Browse the repository at this point in the history
  • Loading branch information
dangtony98 committed Dec 14, 2022
1 parent 787e54f commit a49fcf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions frontend/pages/netlify.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,14 @@ 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'),
code,
integration: "netlify"
});

// router.push("/integrations/" + localStorage.getItem("projectData.id"));
router.push("/integrations/" + localStorage.getItem("projectData.id"));
}

try {
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/json/cloudIntegrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"image": "Netlify",
"isAvailable": true,
"type": "oauth2",
"clientId": "frGheMeEzVEUgM5yHLcPeTj9kYJhYvqkR5IkSexOS50",
"clientId": "fYWBhD3gt0pT62UIwYrlGRcy--pPVLYIQad6ORrES9o",
"redirectURL": "http://localhost:8080/netlify"
},
{
Expand Down

0 comments on commit a49fcf4

Please sign in to comment.