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

Function rowToRefreshTokenRecord

src/oauth-store.ts:221–233  ·  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

219}
220
221function rowToRefreshTokenRecord(row: {
222 client_id: string;
223 scopes_json: string;
224 expires_at: number;
225 resource: string | null;
226}): PersistedRefreshTokenRecord {
227 return {
228 clientId: row.client_id,
229 scopes: JSON.parse(row.scopes_json) as string[],
230 expiresAt: row.expires_at,
231 resource: row.resource ?? undefined,
232 };
233}

Callers 1

getRefreshTokenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected