( candidate: string, passwordHash: string | undefined, )
| 15 | } |
| 16 | |
| 17 | export 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 | } |
no outgoing calls
no test coverage detected