File tree Expand file tree Collapse file tree 4 files changed +191
-218
lines changed Expand file tree Collapse file tree 4 files changed +191
-218
lines changed Original file line number Diff line number Diff line change 16
16
"prod" : " npm-run-all --parallel server api-server"
17
17
},
18
18
"dependencies" : {
19
- "@auth0/auth0-react" : " ^1.12 " ,
19
+ "@auth0/auth0-react" : " ^2.0.0 " ,
20
20
"@babel/core" : " ^7.20" ,
21
21
"@babel/plugin-syntax-flow" : " ^7.18" ,
22
22
"@babel/plugin-transform-react-jsx" : " ^7.20" ,
Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ const NavBar = () => {
32
32
33
33
const logoutWithRedirect = ( ) =>
34
34
logout ( {
35
- returnTo : window . location . origin ,
35
+ logoutParams : {
36
+ returnTo : window . location . origin ,
37
+ }
36
38
} ) ;
37
39
38
40
return (
Original file line number Diff line number Diff line change @@ -20,9 +20,11 @@ const config = getConfig();
20
20
const providerConfig = {
21
21
domain : config . domain ,
22
22
clientId : config . clientId ,
23
- ...( config . audience ? { audience : config . audience } : null ) ,
24
- redirectUri : window . location . origin ,
25
23
onRedirectCallback,
24
+ authorizationParams : {
25
+ redirect_uri : window . location . origin ,
26
+ ...( config . audience ? { audience : config . audience } : null ) ,
27
+ } ,
26
28
} ;
27
29
28
30
ReactDOM . render (
You can’t perform that action at this time.
0 commit comments