Skip to content

chore: migrate keycloak-js 7→26 for Keycloak 26.2 server#41

Merged
sundancekid73 merged 1 commit into
mainfrom
chore/moment-to-dayjs
May 20, 2026
Merged

chore: migrate keycloak-js 7→26 for Keycloak 26.2 server#41
sundancekid73 merged 1 commit into
mainfrom
chore/moment-to-dayjs

Conversation

@sundancekid73
Copy link
Copy Markdown
Collaborator

  • Bump keycloak-js ^7.0.1 → ^26.2.0 (installed 26.2.4)
  • Fix import: import * as Keycloakimport Keycloak (default export)
  • Replace deprecated .success()/.error() callbacks with .then()/.catch()
  • Use new Keycloak() constructor
  • Replace manual logout URL with keycloak.logout() (drops hardcoded /auth path removed in Keycloak 17+)
  • Remove /auth/ suffix from dev Keycloak URL (Keycloak 17+ uses root context path)

- Bump keycloak-js ^7.0.1 → ^26.2.0 (installed 26.2.4)
- Fix import: `import * as Keycloak` → `import Keycloak` (default export)
- Replace deprecated `.success()/.error()` callbacks with `.then()/.catch()`
- Use `new Keycloak()` constructor
- Replace manual logout URL with `keycloak.logout()` (drops hardcoded /auth path removed in Keycloak 17+)
- Remove /auth/ suffix from dev Keycloak URL (Keycloak 17+ uses root context path)

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@sundancekid73 sundancekid73 merged commit e4c1919 into main May 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant