diff --git a/src/cozy-harvest-lib.d.ts b/src/cozy-harvest-lib.d.ts
index 0f45be52b7f5085fb28accb0e6666703ea436cc5..6322ea7904223decd70f287ceb5d859bc3708e0d 100644
--- a/src/cozy-harvest-lib.d.ts
+++ b/src/cozy-harvest-lib.d.ts
@@ -4,3 +4,4 @@ declare module 'cozy-harvest-lib/dist/connections/triggers'
 declare module 'cozy-harvest-lib/dist/helpers/triggers'
 declare module 'cozy-harvest-lib/dist/models/ConnectionFlow'
 declare module 'cozy-harvest-lib/dist/components/OAuthWindow'
+declare module 'cozy-harvest-lib/dist/helpers/oauth'
diff --git a/src/targets/browser/index.tsx b/src/targets/browser/index.tsx
index f9fdb9294bab2dec0beceb7e8805483103558202..be2dfb3c7c802098443603d6972212213f8eb66e 100644
--- a/src/targets/browser/index.tsx
+++ b/src/targets/browser/index.tsx
@@ -8,13 +8,14 @@ import ReactDOM, { render } from 'react-dom'
 import { Document } from 'cozy-doctypes'
 import { I18n } from 'cozy-ui/transpiled/react'
 import { initTranslation } from 'cozy-ui/transpiled/react/I18n'
+import { handleOAuthResponse } from 'cozy-harvest-lib/dist/helpers/oauth'
 import schema from 'doctypes'
 
 const manifest = require('../../../manifest.webapp')
 
 const renderApp = (polyglot: any, lang: string, client: Client) => {
+  if (handleOAuthResponse()) return
   const App = require('components/App').default
-
   render(
     <CozyProvider client={client}>
       <I18n lang={lang} polyglot={polyglot}>