(id: string)
| 6 | device_auth_requests, |
| 7 | device_sessions, |
| 8 | device_refresh_tokens, |
| 9 | native_attested_keys, |
| 10 | passkey_credentials, |
| 11 | session_step_up_proofs, |
| 12 | } from '@kilocode/db/schema'; |
| 13 | import { hashWebSessionId } from '@kilocode/web-shared/lib/admin/step-up-store'; |
| 14 | import { db } from '@kilocode/web-shared/lib/drizzle'; |
| 15 | import { insertTestUser } from '@kilocode/web-shared/tests/helpers/user.helper'; |
| 16 | import { blockUser } from '@/lib/user/block'; |
| 17 | import { consumeAppShellHandoff, createAppShellHandoff } from '@/lib/app-shell/handoff-token'; |
| 18 | |
| 19 | async function getUser(id: string) { |
| 20 | return db.query.kilocode_users.findFirst({ |
| 21 | where: eq(kilocode_users.id, id), |
no outgoing calls
no test coverage detected