Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/store-sqlite / / SqliteOAuthServerStore

Class: SqliteOAuthServerStore

Defined in: packages/store-sqlite/src/oauth-server-store.ts:12

Default OAuthServerStore implementation. Persists OAuth registration metadata + SecretRef URI strings; the actual token material lives in @graphorin/security's secret store and is resolved by the URI at use time (DEC-139 / ADR-033).

Stable

Implements

Constructors

Constructor

ts
new SqliteOAuthServerStore(conn): SqliteOAuthServerStore;

Defined in: packages/store-sqlite/src/oauth-server-store.ts:14

Parameters

ParameterType
connSqliteConnection

Returns

SqliteOAuthServerStore

Methods

delete()

ts
delete(id): Promise<void>;

Defined in: packages/store-sqlite/src/oauth-server-store.ts:78

Remove the record for id.

Parameters

ParameterType
idstring

Returns

Promise&lt;void&gt;

Implementation of

OAuthServerStore.delete


get()

ts
get(id): Promise<
  | OAuthServerRecord
| null>;

Defined in: packages/store-sqlite/src/oauth-server-store.ts:53

Read the record for id, returning null when absent.

Parameters

ParameterType
idstring

Returns

Promise< | OAuthServerRecord | null>

Implementation of

OAuthServerStore.get


list()

ts
list(): Promise<readonly OAuthServerRecord[]>;

Defined in: packages/store-sqlite/src/oauth-server-store.ts:58

Snapshot of all stored records, ordered by id.

Returns

Promise&lt;readonly OAuthServerRecord[]&gt;

Implementation of

OAuthServerStore.list


put()

ts
put(record): Promise<void>;

Defined in: packages/store-sqlite/src/oauth-server-store.ts:18

Insert or replace the record for id.

Parameters

ParameterType
recordOAuthServerRecord

Returns

Promise&lt;void&gt;

Implementation of

OAuthServerStore.put


update()

ts
update(id, patch): Promise<OAuthServerRecord>;

Defined in: packages/store-sqlite/src/oauth-server-store.ts:63

Apply a partial update to the record at id.

Parameters

ParameterType
idstring
patchPartial&lt;OAuthServerRecord&gt;

Returns

Promise&lt;OAuthServerRecord&gt;

Implementation of

OAuthServerStore.update