We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7e0ed9 commit 450815bCopy full SHA for 450815b
src/infra/criptography/bcrypt-adapter.ts
@@ -4,7 +4,7 @@ export class BcryptAdapter implements Encrypter {
4
constructor (private readonly salt: number) {}
5
6
async encrypt (value: string): Promise<string> {
7
- await bcrypt.hash(value, this.salt)
8
- return ''
+ const hash = await bcrypt.hash(value, this.salt)
+ return hash
9
}
10
0 commit comments