File tree 2 files changed +15
-7
lines changed
2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 24
24
work correctly both with client-side routing and a non-root public URL.
25
25
Learn how to configure a non-root public URL by running `npm run build`.
26
26
-->
27
+ <!-- Start Single Page Apps for GitHub Pages -->
27
28
< script type ="text/javascript ">
28
29
// Single Page Apps for GitHub Pages
29
30
// MIT License
44
45
}
45
46
} ( window . location ) )
46
47
</ script >
48
+ <!-- End Single Page Apps for GitHub Pages -->
47
49
< title > React Auth0</ title >
48
50
</ head >
49
51
< body >
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
1
2
import ReactDOM from 'react-dom' ;
3
+ import { BrowserRouter , Route , Routes } from 'react-router-dom' ;
2
4
import { Auth0Provider } from '@auth0/auth0-react' ;
3
5
import './index.css' ;
4
6
import App from './App' ;
7
+ import Profile from './Profile' ;
8
+ import SignIn from './SignIn' ;
5
9
import reportWebVitals from './reportWebVitals' ;
6
10
7
11
ReactDOM . render (
8
- < Auth0Provider
9
- domain = "dev-5tf99p7c.us.auth0.com"
10
- clientId = "GBPB42qhMWCtvrwGmYxvm5cbHXU68nzG"
11
- redirectUri = { window . location . origin + '/react-auth0/profile' }
12
- >
13
- < App />
14
- </ Auth0Provider > ,
12
+ < React . StrictMode >
13
+ < Auth0Provider
14
+ domain = "dev-5tf99p7c.us.auth0.com"
15
+ clientId = "GBPB42qhMWCtvrwGmYxvm5cbHXU68nzG"
16
+ redirectUri = { window . location . origin + '/react-auth0/profile' }
17
+ >
18
+ < App />
19
+ </ Auth0Provider >
20
+ </ React . StrictMode > ,
15
21
document . getElementById ( 'root' )
16
22
) ;
17
23
You can’t perform that action at this time.
0 commit comments