-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit d9c7197
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom/client'; | ||
import './index.css'; | ||
import App from './App'; | ||
import reportWebVitals from './reportWebVitals'; | ||
import { Auth0Provider } from '@auth0/auth0-react'; | ||
|
||
|
||
const root = ReactDOM.createRoot(document.getElementById('root')); | ||
// root.render( | ||
// <React.StrictMode> | ||
// <App /> | ||
// </React.StrictMode> | ||
|
||
// ); | ||
const domain = process.env.REACT_APP_AUTH0_DOMAIN; | ||
const clientId = process.env.REACT_APP_AUTH0_CLIENT_ID; | ||
root.render( | ||
<Auth0Provider | ||
domain={domain} | ||
clientId={clientId} | ||
authorizationParams={{ | ||
redirect_uri: window.location.origin | ||
}} | ||
> | ||
<App /> | ||
</Auth0Provider>, | ||
); | ||
// If you want to start measuring performance in your app, pass a function | ||
// to log results (for example: reportWebVitals(console.log)) | ||
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals | ||
reportWebVitals(); |