UNPKG

feathers-authentication-management

Version:

Adds sign up verification, forgotten password reset, and other capabilities to local feathers-authentication

9 lines (7 loc) 242 B
import { cloneObject } from './clone-object'; import type { User } from '../types'; export function sanitizeUserForNotifier (_user: User): Record<string, unknown> { const user = cloneObject(_user); delete user.password; return user; }