diff --git a/src/Auth/Authentication/JWTAuthentication.php b/src/Auth/Authentication/JWTAuthentication.php index 8545c59..7100ae0 100644 --- a/src/Auth/Authentication/JWTAuthentication.php +++ b/src/Auth/Authentication/JWTAuthentication.php @@ -254,7 +254,7 @@ public function login(array $credentials = []): array 'permissions' => $permissions, ]) ->sign(); - $refreshToken = Str::randomToken(24); + $refreshToken = bin2hex(random_bytes(20)); $jwtToken = $this->jwt->getToken(); $token = $this->tokenRepository->create([