Skip to content

Commit 2d8dd9d

Browse files
fix keycloak syntax
1 parent 08339e1 commit 2d8dd9d

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

apps/curation-dashboard/src/auth.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

apps/validation_framework_v2/src/auth.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)