ToastShaman / dropwizard-auth-jwt

A Dropwizard authentication filter using JSON Web Token (JWT)
Apache License 2.0
116 stars 50 forks source link

Running example code: Error decoding credentials: The token has expired #18

Closed peavers closed 8 years ago

peavers commented 8 years ago

Just building and running the example, using postman and setting the token in the header I'm receiving

WARN  [2015-12-05 04:16:09,509] com.github.toastshaman.dropwizard.auth.jwt.JWTAuthFilter: Error decoding credentials: The token has expired
! com.github.toastshaman.dropwizard.auth.jwt.exceptions.TokenExpiredException: The token has expired
ToastShaman commented 8 years ago

Hi @peavers. Sorry about that, the example actually was generating an expired token to illustrate the ExpiryValidator. I've extended the example and added some more in the Readme. Hopefully this makes things a bit clearer.