feat: eslint 적용 및 관련 코드 일괄 수정
This commit is contained in:
@@ -8,6 +8,5 @@ export interface PasswordHasher {
|
||||
// 비밀번호 해싱은 임시 구현이므로 이후 안전한 KDF로 교체한다.
|
||||
export const createSimplePasswordHasher = (): PasswordHasher => ({
|
||||
createSalt: () => randomBytes(16).toString('hex'),
|
||||
hash: (password: string, salt: string) =>
|
||||
createHash('sha256').update(`${salt}:${password}`).digest('hex'),
|
||||
hash: (password: string, salt: string) => createHash('sha256').update(`${salt}:${password}`).digest('hex'),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user