chore: update environment configuration and Docker setup
- Added .env.example file for environment variable documentation - Refactored docker-compose.yml to use environment variables for API URLs - Updated TypeScript configuration to use NodeNext module resolution
This commit is contained in:
parent
f5638d0e84
commit
cffcddb259
5 changed files with 25 additions and 22 deletions
|
@ -7,7 +7,7 @@ export const hashPassword = (password: string) => {
|
|||
};
|
||||
|
||||
export const verifyPassword = (password: string, hashedPassword: string) => {
|
||||
const [salt, hash] = hashedPassword.split(':');
|
||||
const [salt, hash] = hashedPassword.split(':') as [string, string];
|
||||
const hashBuffer = Buffer.from(hash, 'hex');
|
||||
const result = pbkdf2Sync(password, salt, 1000, 128, 'sha512');
|
||||
return timingSafeEqual(hashBuffer, result);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue