add random token generator

This commit is contained in:
Yisroel Baum 2026-04-24 13:23:12 +03:00
parent a0bea204b4
commit 07040851ec
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -0,0 +1,11 @@
<?php
namespace App\Auth;
class RandomTokenGenerator implements TokenGenerator
{
public function generate(): string
{
return bin2hex(random_bytes(32));
}
}