mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 19:28:35 +00:00
Fix incorrect imports, build errors
This commit is contained in:
@@ -14,17 +14,14 @@ export default function HerokuOAuth2CallbackPage() {
|
||||
(async () => {
|
||||
try {
|
||||
// validate state
|
||||
console.log('A');
|
||||
if (state !== localStorage.getItem('latestCSRFToken')) return;
|
||||
localStorage.removeItem('latestCSRFToken');
|
||||
console.log('B');
|
||||
const integrationAuth = await AuthorizeIntegration({
|
||||
workspaceId: localStorage.getItem('projectData.id') as string,
|
||||
code: code as string,
|
||||
integration: 'heroku'
|
||||
});
|
||||
|
||||
console.log('C');
|
||||
router.push(
|
||||
`/integrations/heroku/create?integrationAuthId=${integrationAuth._id}`
|
||||
);
|
||||
@@ -32,7 +29,6 @@ export default function HerokuOAuth2CallbackPage() {
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
console.log('D');
|
||||
})();
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user