AbsoluteJS

citra-example

citra-examplev0.0.1betaDev Tools

Runnable showcase for citra — authorize, callback, refresh, revoke, and fetch-profile against every supported OAuth2 provider.

#Installation

BASH
# Private workspace project: ~/abs/examples/citra

#Capabilities

Overview

A runnable AbsoluteJS showcase for citra — the TypeScript OAuth2 client. It exercises authorize, callback, refresh, revoke, and fetch-profile flows against every supported provider.

This project imports the published citra package (see package.json), so it doubles as an integration check against the real npm release rather than local source.

Run

Provider credentials are read from the environment by the plugins in providers/. Copy your own client IDs/secrets in before exercising a given provider.

Scripts

bun run dev / bun run start — boot the Elysia + React showcase (server.ts)

bun run lint / bun run typecheck / bun run format — via the AbsoluteJS CLI

Outcomes

What you can build

Build on the supported package contract

Use citra-example through its supported public entry points.

Hardening checklist

Production guidance

Make every external boundary explicitPin the deployed citra-example 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 citra-example example, confirm the supported entry point and version in the API explorer, then inspect the first boundary that did not produce its documented result.

#Run

Partial snippet

Working example for Run.

BASH
bun install
bun run dev      # watch mode on the example server
# or
bun run start

#Package commands

Scripts declared by this package manifest.

bun run buildabsolute build
bun run devabsolute dev
bun run formatabsolute prettier --write
bun run lintabsolute eslint
bun run startabsolute start
bun run typecheckabsolute typecheck
Private workspace project
This project is maintained inside the workspace and is not published as a standalone npm package.