MCPcopy Create free account
hub / github.com/msgbyte/tailchat / pickUserBaseInfo

Function pickUserBaseInfo

client/shared/model/user.ts:51–63  ·  view source on GitHub ↗
(userInfo: UserLoginInfo)

Source from the content-addressed store, hash-verified

49}
50
51export function pickUserBaseInfo(userInfo: UserLoginInfo): UserBaseInfo {
52 return _pick(userInfo, [
53 '_id',
54 'email',
55 'nickname',
56 'discriminator',
57 'avatar',
58 'temporary',
59 'type',
60 'emailVerified',
61 'banned',
62 ]);
63}
64
65// 内置用户信息
66const builtinUserInfo: Record<string, () => UserBaseInfo> = {

Callers 2

loginWithEmailFunction · 0.85
loginWithTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected