Function
rowToRefreshTokenRecord
(row: {
client_id: string;
scopes_json: string;
expires_at: number;
resource: string | null;
})
Source from the content-addressed store, hash-verified
| 219 | } |
| 220 | |
| 221 | function 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 | } |
Tested by
no test coverage detected