MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / createAuth

Method createAuth

apps/web/services/users/users.ts:106–117  ·  view source on GitHub ↗
({ email, password }: CreateAuthParams)

Source from the content-addressed store, hash-verified

104 return newAuth;
105 }
106 static async createAuth({ email, password }: CreateAuthParams) {
107 const salt = generateSalt();
108 const hash = generateHash(password, salt);
109
110 return prisma.auths.create({
111 data: {
112 salt,
113 password: hash,
114 email: String(email).toLowerCase(),
115 },
116 });
117 }
118 static async upsertUser({
119 isAdmin = false,
120 isBot = false,

Callers 1

createFunction · 0.80

Calls 3

generateSaltFunction · 0.90
generateHashFunction · 0.90
createMethod · 0.45

Tested by

no test coverage detected