1.0.7 • Published 2 months ago
@sgpinkus/keycloak-js v1.0.7
KEYCLOCK-JS-SIMPLE
A simpler, less stateful, API compatibl-ish replacement for the official keycloak-js adapter. Only supports code authentication flow (since implicit is deprecated).
INSTALLATION
npm i @sgpinkus/keycloak-js
USAGE
import { Keycloak } from '@sgpinkus/keycloak-js';
const kc = new Keycloak({
authServerUrl: 'http://localhost:8080',
realm: 'testing',
clientId: 'testing',
};
window.location.href = kc.getLoginUrl();
See sample-app for complete example.