AbsoluteJS

@absolutejs/agent-exchange-oauth-stores

@absolutejs/agent-exchange-oauth-storesv0.2.0betaAI

Memory, Redis, and PostgreSQL one-time OAuth session stores for Agent Exchange.

#Installation

BASH
bun add @absolutejs/agent-exchange-oauth-stores

#Capabilities

Overview

One-time authorization session stores for the hardened OAuth flow:

in-memory for tests and single-process development;

Redis through a minimal atomic putIfAbsent / take client;

Show 2 more

PostgreSQL through a minimal parameterized query client.

Durable stores require a session sealer. State values are hashed before becoming storage keys, and code verifiers are sealed before persistence.

Outcomes

What you can build

Build on the supported package contract

Use @absolutejs/agent-exchange-oauth-stores through its supported public entry points.

Hardening checklist

Production guidance

Make every external boundary explicitPin the deployed @absolutejs/agent-exchange-oauth-stores version, replace example or memory-backed dependencies with durable implementations, bound external calls, protect credentials, and emit enough evidence to retry or recover safely.

Follow in order

Troubleshooting path

1
Trace from the first failed boundary
Reproduce the smallest canonical @absolutejs/agent-exchange-oauth-stores example, confirm the supported entry point and version in the API explorer, then inspect the first boundary that did not produce its documented result.

#Public entry points

Supported entry points declared by this package manifest.

@absolutejs/agent-exchange-oauth-storesPackage entry point declared in package.json.

#Package commands

Scripts declared by this package manifest.

bun run buildrm -rf dist && bun build src/index.ts --outdir dist --root src --sourcemap --target=browser --external @absolutejs/agent-exchange-oauth && tsc --project tsconfig.build.json
bun run formatprettier --write "./**/*.{ts,json,md}"
bun run format:checkprettier --check "./**/*.{ts,json,md}"
bun run testbun test tests/
bun run typechecktsc --noEmit

#API reference

Search the declarations exported by the current package type files. Expand a symbol to inspect its source-backed signature.

8 symbols
OAuthSessionSealertypePermalinkSource
TS
type OAuthSessionSealer = {
    readonly open: (sealed: Uint8Array) => Promise<Uint8Array>;
    readonly seal: (plaintext: Uint8Array) => Promise<Uint8Array>;
};
Exported from @absolutejs/agent-exchange-oauth-stores