@multiplatform.one/keycloak-js
v6.1.0
Published
Keycloak JS adapter vendored and patched (e.g. timeout overflow fix). Built from upstream keycloak-js at build time.
Readme
@multiplatform.one/keycloak-js
Vendored and patched keycloak-js. Used by @multiplatform.one/siwe-keycloak, @multiplatform.one/keycloak, and anywhere else that needs the patched adapter (e.g. timeout overflow).
No full keycloak-js source is committed. Only the patches in patches/ are stored in the repo. The build script (pnpm build) vendors upstream keycloak-js from node_modules, applies those patches to lib/, then copies lib/ → dist/ for publishing.
Build
pnpm install # in repo root or this package
pnpm build # vendor keycloak-js + apply patches + copy lib/ → dist/Before first publish (or in CI), run pnpm build so dist/ exists. prepublishOnly runs the build automatically.
Adding / changing patches
See patches/README.md. Add *.patch files under patches/; they are applied in alphabetical order. Paths in patches must be relative to the keycloak-js package root (e.g. lib/keycloak.js).
Upgrading upstream
- Bump
devDependencies.keycloak-jsinpackage.json. pnpm install- Re-apply or adjust patches; run
pnpm buildand test. - Bump this package version and publish.
Publishing
This package is published from the multiplatform.one monorepo (e.g. via Changesets). Publish includes dist/, patches/, and README.md; .vendor is not published.
