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

Rejection reasons #53

Open
ghost opened this issue Apr 9, 2017 · 3 comments
Open

Rejection reasons #53

ghost opened this issue Apr 9, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 9, 2017

Tried to collect possible rejection reasons to react on malformed, expired or missing tokens to use in client for proper error handling.

Got these from exceptions declared in the lib itself, are there more?

  1. Token not found
  2. Expired token
  3. Signature verification failed
@tuupola
Copy link
Owner

tuupola commented Apr 10, 2017

Underlying library firebase/php-jwt seems to have these:

https://github.com/firebase/php-jwt/blob/master/src/JWT.php#L58-L62

@ghost
Copy link
Author

ghost commented Apr 10, 2017

Yes thanks a lot. Would be nice to have those listed in the docu as well.

@tuupola
Copy link
Owner

tuupola commented Apr 11, 2017

Yeah, documentation is always lacking... Will keep this in mind. Thanks for the heads up!

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

1 participant