Skip to content

Latest commit

 

History

History
162 lines (75 loc) · 2.29 KB

embedded.md

File metadata and controls

162 lines (75 loc) · 2.29 KB

Home > @cerbos/embedded

embedded package

Client library for interacting with embedded Cerbos policy decision points generated by Cerbos Hub from server-side Node.js and browser-based applications.

Classes

Class

Description

AutoUpdatingLoader

Loads an embedded policy decision point bundle from a given URL, and polls for updates.

Embedded

A client for interacting with an embedded Cerbos policy decision point (PDP).

Loader

Loads an embedded policy decision point bundle from a given source.

LoadError

Error thrown when a Loader fails to load an embedded policy decision point bundle.

Interfaces

Interface

Description

AutoUpdateOptions

Options for creating a new AutoUpdatingLoader.

BundleMetadata

Metadata describing an embedded policy decision point bundle.

Options

Options for creating a new Embedded client or Loader.

Type Aliases

Type Alias

Description

DecodedJWTPayload

The decoded payload of a JWT, containing the claims.

DecodeJWTPayload

A function to verify and decode a JWT, returning its payload.

Source

WebAssembly binary code of an embedded policy decision point bundle, or a URL or HTTP response from which to stream it.