Skip to content

Commit cdefea7

Browse files
update keycloak packagE
1 parent 2d8dd9d commit cdefea7

5 files changed

Lines changed: 4046 additions & 11701 deletions

File tree

apps/curation-dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
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"

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-
.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

0 commit comments

Comments
 (0)