Skip to content

Commit

Permalink
test: decode without verify
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Sep 30, 2020
1 parent e2dc2a6 commit 3d8b046
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/JWTTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public function test_kid()
$token = $jwt->encode($payload = ['a' => 1, 'exp' => time() + 1000], ['kid' => 'key2']);

$this->assertSame($payload, $jwt->decode($token));
$this->assertSame($payload, $jwt->decode($token, false));

return $jwt;
}
Expand Down

0 comments on commit 3d8b046

Please sign in to comment.