add auth utility interfaces and impls
Clock + SystemClock (DateTimeImmutable in UTC), TokenGenerator + RandomTokenGenerator (bin2hex(random_bytes(32)) -> 64-char hex), PasswordHasher + BcryptPasswordHasher (password_hash with PASSWORD_DEFAULT, password_verify). matching fakes: FakeClock with mutable setTime, FakeTokenGenerator with a pre-seeded queue (throws once exhausted), FakePasswordHasher returns 'hashed:<plain>' for deterministic test assertions. composer stan now passes --memory-limit=512M (default 128M overflows once larastan loads more rules).
This commit is contained in:
parent
eca73213f5
commit
bb38e544ee
10 changed files with 136 additions and 1 deletions
|
|
@ -49,7 +49,7 @@
|
|||
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" --names=server,queue,logs --kill-others"
|
||||
],
|
||||
|
||||
"stan": "phpstan analyse --no-progress",
|
||||
"stan": "phpstan analyse --no-progress --memory-limit=512M",
|
||||
"cs:fix": "php-cs-fixer fix",
|
||||
"cs:check": "php-cs-fixer check --diff -vvv",
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue