Skip to content

API Reference

The library is organized around a ready-to-use tokenHandler. Signer and Cipher are used to plug in the default signing and encryption mechanics, or your own implementations when you need to go further.

🔑 TokenHandler

The core of the library. It brings together token creation, decoding, and verification, including expiration, issuer, subject, and audience validation in the same flow.

✍️ Signer

Signers are responsible for signing content and verifying its signature. You can use the built-in algorithms or create your own signer with a factory.

🔢 Cipher

Ciphers handle token encryption and decryption. As with signers, the library provides ready-to-use implementations while leaving the door open to custom ones.

Released under the MIT license.