Skip to content

Commit 98c8012

Browse files
committed
Validation of token
- rule to validate the token verify
1 parent 92fc52f commit 98c8012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Security/JWT.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static function payload(string $token, string $secret): array
5353
public static function verify(string $token, string $secret): bool
5454
{
5555
$peaces = explode('.', $token);
56-
if (count($peaces) > 3) {
56+
if (count($peaces) < 3) {
5757
return false;
5858
}
5959
$header = $peaces[0];

0 commit comments

Comments
 (0)