Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of nbf or exp Time Message? #151

Closed
michael-mammut opened this issue Jan 7, 2017 · 2 comments
Closed

Out of nbf or exp Time Message? #151

michael-mammut opened this issue Jan 7, 2017 · 2 comments
Assignees

Comments

@michael-mammut
Copy link

Hello @lcobucci , I am using the following code snipped and I receive true or false, thats good, but is it possible to receive a message, why the token is invalide? For example : jwt - nbf - timestamp of nbf is not reached or jwt - exp - token has expired.

        $validationData = new ValidationData();
        $jwtDec = (new Parser())->parse((string) $jwt);
       return  $jwtDec->validate($validationData );
@lcobucci
Copy link
Owner

lcobucci commented Jan 7, 2017

@michael-mammut that's being done on #129 and it will be available for next major release 😉.

@lcobucci
Copy link
Owner

lcobucci commented Jan 7, 2017

Closing as duplicate of #72.

@lcobucci lcobucci closed this as completed Jan 7, 2017
@lcobucci lcobucci self-assigned this Jan 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants