File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 "@testing-library/react" : " ^11.2.5" ,
1111 "@testing-library/user-event" : " ^12.8.1" ,
1212 "axios" : " ^0.21.1" ,
13- "keycloak-js" : " ^8 .0.1 " ,
13+ "keycloak-js" : " ^12 .0.2 " ,
1414 "react" : " ^17.0.1" ,
1515 "react-dom" : " ^17.0.1" ,
1616 "react-scripts" : " 4.0.3"
Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ export default function initAuth(main) {
2020 // for local development
2121 keycloak
2222 . init ( { flow : 'implicit' , promiseType : 'native' } )
23- . success ( ( ) => checkAuth ( main ) )
24- . error ( console . log ) ;
23+ . then ( ( ) => checkAuth ( main ) )
24+ . catch ( console . log ) ;
2525 } else {
2626 // for deployment
2727 keycloak
2828 . init ( { flow : 'standard' , pkceMethod : 'S256' } )
29- . success ( ( ) => checkAuth ( main ) )
30- . error ( console . log ) ;
29+ . then ( ( ) => checkAuth ( main ) )
30+ . catch ( console . log ) ;
3131 }
3232}
3333
You can’t perform that action at this time.
0 commit comments