File tree Expand file tree Collapse file tree
validation_framework_v2/src Expand file tree Collapse file tree 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- . then ( ( ) => checkAuth ( main ) )
24- . catch ( console . log ) ;
23+ . success ( ( ) => checkAuth ( main ) )
24+ . error ( console . log ) ;
2525 } else {
2626 // for deployment
2727 keycloak
2828 . init ( { flow : 'standard' , pkceMethod : 'S256' } )
29- . then ( ( ) => checkAuth ( main ) )
30- . catch ( console . log ) ;
29+ . success ( ( ) => checkAuth ( main ) )
30+ . error ( console . log ) ;
3131 }
3232}
3333
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- . then ( ( ) => checkAuth ( main ) )
24- . catch ( console . log ) ;
23+ . success ( ( ) => checkAuth ( main ) )
24+ . error ( console . log ) ;
2525 } else {
2626 // for deployment
2727 keycloak
2828 . init ( { flow : 'standard' , pkceMethod : 'S256' } )
29- . then ( ( ) => checkAuth ( main ) )
30- . catch ( console . log ) ;
29+ . success ( ( ) => checkAuth ( main ) )
30+ . error ( console . log ) ;
3131 }
3232}
3333
You can’t perform that action at this time.
0 commit comments