8000 Token validation ! · Issue #28 · lcobucci/jwt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Token validation ! #28
Closed
Closed
@absolux

Description

@absolux

I tried to create a token without Expiration claim, and validate it. the token validate method should return false, but instead it returns true.

$builder = new Builder();
$token
5488
 = $builder->setSubject(1)->getToken();
$validator = new ValidationData();
$this->assertFalse($token->validate($validator)); // Failed asserting that true is false.

I think ValidationData must validate the Token claims and not the opposite.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0