(row: {
client_id: string;
scopes_json: string;
expires_at: number;
resource: string | null;
})
| 205 | } |
| 206 | |
| 207 | function 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 | |
| 221 | function rowToRefreshTokenRecord(row: { |
| 222 | client_id: string; |