diff options
Diffstat (limited to 'contracts/hash.ts')
-rw-r--r-- | contracts/hash.ts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/contracts/hash.ts b/contracts/hash.ts new file mode 100644 index 0000000..af336c7 --- /dev/null +++ b/contracts/hash.ts | |||
@@ -0,0 +1,26 @@ | |||
1 | /** | ||
2 | * Contract source: https://git.io/Jfefs | ||
3 | * | ||
4 | * Feel free to let us know via PR, if you find something broken in this contract | ||
5 | * file. | ||
6 | */ | ||
7 | |||
8 | import { InferListFromConfig } from '@adonisjs/core/build/config'; | ||
9 | import hashConfig from '../config/hash'; | ||
10 | |||
11 | declare module '@ioc:Adonis/Core/Hash' { | ||
12 | interface HashersList extends InferListFromConfig<typeof hashConfig> { | ||
13 | bcrypt: { | ||
14 | config: BcryptConfig; | ||
15 | implementation: BcryptContract; | ||
16 | }; | ||
17 | argon: { | ||
18 | config: ArgonConfig; | ||
19 | implementation: ArgonContract; | ||
20 | }; | ||
21 | legacy: { | ||
22 | config: BcryptConfig; | ||
23 | implementation: HashDriverContract; | ||
24 | }; | ||
25 | } | ||
26 | } | ||