We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 56a0cfb + 163f301 commit 1859330Copy full SHA for 1859330
2 files changed
CHANGELOG.md
@@ -10,6 +10,8 @@ See https://github.com/slimphp/Slim-Csrf/releases for a full list
10
underscore. This should not affect anyone who uses the relvant methods, but
11
if you have hard-coded, then they will need to be updated.
12
13
+- Changed: Increased likelihood that tokens are unique.
14
+
15
## 1.5.0
16
17
- Added: Support for PHP 8.2 and 8.3
src/Guard.php
@@ -215,7 +215,7 @@ protected function createToken(): string
215
public function generateToken(): array
216
{
217
// Generate new CSRF token
218
- $name = uniqid($this->prefix);
+ $name = uniqid($this->prefix, true);
219
$value = $this->createToken();
220
$this->saveTokenToStorage($name, $value);
221
0 commit comments