(user: Partial<User>)
| 35 | } |
| 36 | |
| 37 | export function sanitizeUser(user: Partial<User>) { |
| 38 | delete user.credential |
| 39 | delete user.tempToken |
| 40 | delete user.tokenExpiry |
| 41 | |
| 42 | return user |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * Expands an IPv6 string to exactly 8 groups of 16-bit hex, handling :: and IPv4-mapped form. |
no outgoing calls
no test coverage detected