MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / verifyPassword

Function verifyPassword

packages/server/src/services/auth/password.ts:17–25  ·  view source on GitHub ↗
(
  candidate: string,
  passwordHash: string | undefined,
)

Source from the content-addressed store, hash-verified

15}
16
17export async function verifyPassword(
18 candidate: string,
19 passwordHash: string | undefined,
20): Promise<boolean> {
21 if (passwordHash === undefined) {
22 return false;
23 }
24 return compare(candidate, passwordHash);
25}

Callers 2

createAuthTokenServiceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected