MCPcopy Create free account
hub / github.com/Waishnav/devspace / rowToAccessTokenRecord

Function rowToAccessTokenRecord

src/oauth-store.ts:207–219  ·  view source on GitHub ↗
(row: {
  client_id: string;
  scopes_json: string;
  expires_at: number;
  resource: string | null;
})

Source from the content-addressed store, hash-verified

205}
206
207function rowToAccessTokenRecord(row: {
208 client_id: string;
209 scopes_json: string;
210 expires_at: number;
211 resource: string | null;
212}): PersistedAccessTokenRecord {
213 return {
214 clientId: row.client_id,
215 scopes: JSON.parse(row.scopes_json) as string[],
216 expiresAt: row.expires_at,
217 resource: row.resource ?? undefined,
218 };
219}
220
221function rowToRefreshTokenRecord(row: {
222 client_id: string;

Callers 1

getAccessTokenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected