feat: OIDC with PKCE flow (#491)

This commit is contained in:
gorrilla10101
2023-09-04 20:06:59 +05:00
committed by GitHub
parent e254443272
commit 6941500c7b
24 changed files with 805 additions and 22 deletions
+7 -3
View File
@@ -1,11 +1,15 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import Config from './constants/Config';
import store from './store';
import history from './history';
import Root from './components/Root';
import './i18n';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(React.createElement(Root, { store, history }));
fetch(`${Config.SERVER_BASE_URL}/api/appconfig`).then((response) => {
response.json().then((config) => {
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(React.createElement(Root, { store, history, config }));
});
});