For the complete documentation index, see llms.txt. This page is also available as Markdown.

Built-In Functions

All Built-In Functions registered by the bx-jwt module.

Function
Description

Signs a payload and returns a compact JWS token string.

Verifies a JWS signature and claims; throws on failure.

Boolean verification — returns true/false instead of throwing.

Decodes a JWS without verifying the signature.

Re-issues a token with fresh iat, jti, and optional new exp.

Encrypts a payload as a compact JWE token.

Decrypts a JWE token and returns the claims struct.

Returns a fluent JwtBuilder for chainable token construction.

Generates a cryptographically random Base64 HMAC secret.

Generates an RSA or EC key pair as PEM strings.

Last updated

Was this helpful?