MCPcopy Create free account
hub / github.com/QuantiaAI/helm-agents / onModuleInit

Method onModuleInit

apps/api/src/auth/bootstrap.service.ts:19–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 ) {}
18
19 onModuleInit(): void {
20 const email = this.cfg.bootstrapEmail?.trim().toLowerCase();
21 const password = this.cfg.bootstrapPassword;
22 if (!email || !password || password.length < 8) return;
23 if (this.store.users.findByEmail(email)) return;
24 this.store.users.create({
25 id: "usr_" + randomUUID(),
26 email,
27 passwordHash: hashPassword(password),
28 createdAt: Date.now(),
29 });
30 }
31}

Callers

nothing calls this directly

Calls 3

hashPasswordFunction · 0.85
findByEmailMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected