Skip to content
Snippets Groups Projects
Commit b69c01ca authored by Yoan VALLET's avatar Yoan VALLET
Browse files

Merge branch 'fix/oauth' into 'dev'

use handleOAuthResponse

See merge request web-et-numerique/llle_project/ecolyo!104
parents 89697920 22ff7b3b
No related branches found
No related tags found
2 merge requests!106v0.2.1,!104use handleOAuthResponse
...@@ -4,3 +4,4 @@ declare module 'cozy-harvest-lib/dist/connections/triggers' ...@@ -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/helpers/triggers'
declare module 'cozy-harvest-lib/dist/models/ConnectionFlow' declare module 'cozy-harvest-lib/dist/models/ConnectionFlow'
declare module 'cozy-harvest-lib/dist/components/OAuthWindow' declare module 'cozy-harvest-lib/dist/components/OAuthWindow'
declare module 'cozy-harvest-lib/dist/helpers/oauth'
...@@ -8,13 +8,14 @@ import ReactDOM, { render } from 'react-dom' ...@@ -8,13 +8,14 @@ import ReactDOM, { render } from 'react-dom'
import { Document } from 'cozy-doctypes' import { Document } from 'cozy-doctypes'
import { I18n } from 'cozy-ui/transpiled/react' import { I18n } from 'cozy-ui/transpiled/react'
import { initTranslation } from 'cozy-ui/transpiled/react/I18n' import { initTranslation } from 'cozy-ui/transpiled/react/I18n'
import { handleOAuthResponse } from 'cozy-harvest-lib/dist/helpers/oauth'
import schema from 'doctypes' import schema from 'doctypes'
const manifest = require('../../../manifest.webapp') const manifest = require('../../../manifest.webapp')
const renderApp = (polyglot: any, lang: string, client: Client) => { const renderApp = (polyglot: any, lang: string, client: Client) => {
if (handleOAuthResponse()) return
const App = require('components/App').default const App = require('components/App').default
render( render(
<CozyProvider client={client}> <CozyProvider client={client}>
<I18n lang={lang} polyglot={polyglot}> <I18n lang={lang} polyglot={polyglot}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment