(accounts, email)
| 201 | } |
| 202 | |
| 203 | export function findAccountByEmail(accounts, email) { |
| 204 | if (!email || typeof email !== 'string') return null |
| 205 | return ( |
| 206 | accounts.find(a => a?.email && typeof a.email === 'string' && a.email.toLowerCase() === email.toLowerCase()) || |
| 207 | null |
| 208 | ) |
| 209 | } |
| 210 | |
| 211 | export function getUserAgent(fingerprint) { |
| 212 | if (!fingerprint) return null |