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
+1 -4
View File
@@ -19,16 +19,13 @@ export default function Netlify() {
if (state === localStorage.getItem('latestCSRFToken')) { if (state === localStorage.getItem('latestCSRFToken')) {
localStorage.removeItem('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({ await AuthorizeIntegration({
workspaceId: localStorage.getItem('projectData.id'), workspaceId: localStorage.getItem('projectData.id'),
code, code,
integration: "netlify" integration: "netlify"
}); });
// router.push("/integrations/" + localStorage.getItem("projectData.id")); router.push("/integrations/" + localStorage.getItem("projectData.id"));
} }
try { try {
+1 -1
View File
@@ -21,7 +21,7 @@
"image": "Netlify", "image": "Netlify",
"isAvailable": true, "isAvailable": true,
"type": "oauth2", "type": "oauth2",
"clientId": "frGheMeEzVEUgM5yHLcPeTj9kYJhYvqkR5IkSexOS50", "clientId": "fYWBhD3gt0pT62UIwYrlGRcy--pPVLYIQad6ORrES9o",
"redirectURL": "http://localhost:8080/netlify" "redirectURL": "http://localhost:8080/netlify"
}, },
{ {