(reads: string[] = [])
| 193 | * the strict stub above would die on it. Records each read in `reads`. |
| 194 | */ |
| 195 | const profiles = (reads: string[] = []): Partial<WorkOSClientService> => ({ |
| 196 | getUser: (userId) => |
| 197 | Effect.sync(() => { |
| 198 | reads.push(userId); |
| 199 | return workosUser(userId); |
| 200 | }), |
| 201 | }); |
| 202 | |
| 203 | const DbLive = DbService.Live; |
| 204 | // The authorization checks below always read the mirror, never WorkOS. |
no test coverage detected