mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 11:27:47 +00:00
Begin Netlify integration
This commit is contained in:
@@ -10,21 +10,14 @@ export default function Vercel() {
|
||||
const code = parsedUrl.code;
|
||||
const state = parsedUrl.state
|
||||
|
||||
// modify comment here
|
||||
|
||||
/**
|
||||
* Here we forward to the default workspace if a user opens this url
|
||||
*/
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
useEffect(async () => {
|
||||
console.log('parsedUrl for vercel ', parsedUrl);
|
||||
if (state === localStorage.getItem('latestCSRFToken')) {
|
||||
localStorage.removeItem('latestCSRFToken');
|
||||
|
||||
console.log('integ');
|
||||
console.log('code', code);
|
||||
console.log('state', state);
|
||||
|
||||
await AuthorizeIntegration({
|
||||
workspaceId: localStorage.getItem('projectData.id'),
|
||||
code,
|
||||
@@ -33,10 +26,7 @@ export default function Vercel() {
|
||||
|
||||
router.push("/integrations/" + localStorage.getItem("projectData.id"));
|
||||
}
|
||||
// parsedUrl.code
|
||||
// parsedUrl.configurationId
|
||||
// parsedUrl.next
|
||||
// parsedUrl.state
|
||||
|
||||
try {
|
||||
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user