# keycloak-js

> A client-side JavaScript OpenID Connect library that can be used to secure web applications.

Latest version **26.2.4** (published 2026-04-22) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install keycloak-js
pnpm add keycloak-js
yarn add keycloak-js
bun add keycloak-js
```

## Health

**Score 58/100 (C)** — status: active.

Positive: has types package; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 26.2.4 |
| Published | 2026-04-22 |
| First published | 2015-09-02 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | separate (@types/keycloak-js) |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 107.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 89 |
| Author | Keycloak |
| Maintainers | keycloak.bot, stianst, jkoops, abstractj |
| Keywords | keycloak, sso, oauth, oauth2, authentication |

## Links

- npm: https://www.npmjs.com/package/keycloak-js
- Repository: https://github.com/keycloak/keycloak-js
- Homepage: https://www.keycloak.org
- Issues: https://github.com/keycloak/keycloak-js/issues
- npm.io page: https://npm.io/package/keycloak-js

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 26.2.4 (latest) — 2026-04-22
- 26.2.3 — 2026-02-04
- 26.2.2 — 2025-12-11
- 26.2.1 — 2025-10-09
- 26.1.5 — 2025-04-11
- 26.1.4 — 2025-03-13
- 26.1.3 — 2025-02-28
- 26.2.0 — 2025-02-20
- 26.1.2 — 2025-02-11
- 26.1.1 — 2025-02-05
- 26.1.0 — 2025-01-15
- 26.0.8 — 2025-01-13
- 26.0.7 — 2024-12-03
- 26.0.6 — 2024-11-22
- 26.0.5 — 2024-11-01
- … 149 more at https://npm.io/package/keycloak-js/versions

## README

# Keycloak JS

Keycloak is an Open Source Identity and Access Management solution for modern Applications and Services.

This repository contains the client-side JavaScript library that can be used to secure web applications and integrate them with Keycloak.

## Help and Documentation

* [Documentation](https://www.keycloak.org/documentation.html)
* [Keycloak JavaScript adapter guide](https://www.keycloak.org/securing-apps/javascript-adapter) - The specific guide for this client
* [User Mailing List](https://groups.google.com/g/keycloak-user) - Mailing list for help and general questions about Keycloak

## Reporting Security Vulnerabilities

If you've found a security vulnerability, please look at the [instructions on how to properly report it](http://www.keycloak.org/security.html)

## Reporting an issue

If you believe you have discovered a defect in the keycloak-js adapter please open an issue in our [Issue Tracker](https://github.com/keycloak/keycloak-js/issues).
Please remember to provide a good summary, description as well as steps to reproduce the issue.
The tracker can also be used for feature and enhancement requests.

## Getting started

To start with the keycloak-js adapter please try one of our [quickstarts](https://github.com/keycloak/keycloak-quickstarts).

For more details refer to the [Keycloak Documentation](https://www.keycloak.org/documentation.html).

## Contributing

Before contributing to keycloak-js adapter please read our [contributing guidelines](CONTRIBUTING.md).

## Other Keycloak Projects

* [Keycloak](https://github.com/keycloak/keycloak) - Keycloak Server and Java adapters
* [Keycloak QuickStarts](https://github.com/keycloak/keycloak-quickstarts) - QuickStarts for getting started with Keycloak
* [Keycloak Docker](https://github.com/keycloak/keycloak-containers) - Docker images for Keycloak
* [Keycloak Node.js Adapter](https://github.com/keycloak/keycloak-nodejs-connect) - Keycloak adapter for Node.js

## License

* [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)

---
_Source: https://npm.io/package/keycloak-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
