- added own provider for drive methods
Some checks failed
CI Pipeline / japa-tests (push) Failing after 1m13s

- renamed middleware Role and Can to role_middleware and can_middleware
- added some typing for inertia vue3 components
- npm updates
This commit is contained in:
Kaimbacher 2024-04-23 19:36:45 +02:00
parent cb51a4136f
commit 296c8fd46e
67 changed files with 2515 additions and 1913 deletions

View file

@ -11,8 +11,7 @@ export type PbkdfConfig = {
rounds: number;
saltSize?: number;
version?: number;
}
};
const saltRounds = 10;
export class LaravelDriver implements HashDriverContract {
@ -24,8 +23,8 @@ export class LaravelDriver implements HashDriverContract {
this.config = {
rounds: 10,
saltSize: 16,
version: 98,
...config
version: 98,
...config,
};
}
@ -135,9 +134,8 @@ export class LaravelDriver implements HashDriverContract {
* Factory function to reference the driver
* inside the config file.
*/
export function laravelDriver (config: PbkdfConfig): ManagerDriverFactory {
export function laravelDriver(config: PbkdfConfig): ManagerDriverFactory {
return () => {
return new LaravelDriver(config)
}
}
return new LaravelDriver(config);
};
}