Skip to content

Commit

Permalink
Change refresh token generation
Browse files Browse the repository at this point in the history
  • Loading branch information
nguereza-tony committed Sep 23, 2023
1 parent 1cf4ee5 commit d33ba47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth/Authentication/JWTAuthentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit d33ba47

Please sign in to comment.