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
new SqliteOAuthServerStore(conn): SqliteOAuthServerStore;Defined in: packages/store-sqlite/src/oauth-server-store.ts:14
Parameters
| Parameter | Type |
|---|---|
conn | SqliteConnection |
Returns
SqliteOAuthServerStore
Methods
delete()
delete(id): Promise<void>;Defined in: packages/store-sqlite/src/oauth-server-store.ts:78
Remove the record for id.
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
Promise<void>
Implementation of
get()
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
| Parameter | Type |
|---|---|
id | string |
Returns
Promise< | OAuthServerRecord | null>
Implementation of
list()
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<readonly OAuthServerRecord[]>
Implementation of
put()
put(record): Promise<void>;Defined in: packages/store-sqlite/src/oauth-server-store.ts:18
Insert or replace the record for id.
Parameters
| Parameter | Type |
|---|---|
record | OAuthServerRecord |
Returns
Promise<void>
Implementation of
update()
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
| Parameter | Type |
|---|---|
id | string |
patch | Partial<OAuthServerRecord> |
Returns
Promise<OAuthServerRecord>