()
| 241 | }); |
| 242 | |
| 243 | const lookup = async () => { |
| 244 | const existing = await workos.userManagement.listUsers({ email: normalized }); |
| 245 | return existing.data.find((u) => u.email.toLowerCase() === normalized); |
| 246 | }; |
| 247 | |
| 248 | const existing = await lookup(); |
| 249 | if (existing) return toUser(existing); |
no outgoing calls
no test coverage detected