MCPcopy
hub / github.com/FlowiseAI/Flowise / sanitizeUser

Function sanitizeUser

packages/server/src/utils/sanitize.util.ts:37–43  ·  view source on GitHub ↗
(user: Partial<User>)

Source from the content-addressed store, hash-verified

35}
36
37export 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.

Callers 6

saveInviteAccountMethod · 0.90
loginMethod · 0.90
verifyMethod · 0.90
updateUserMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected