Invalidate token when new role exists

Fixes #12.
This commit is contained in:
Matthew Dillon 2015-10-13 11:14:32 -07:00
parent e756b13099
commit 7c253d7aa5
2 changed files with 17 additions and 1 deletions

View file

@ -5,4 +5,6 @@ import "errors"
var (
// ErrExpiredToken when expired token.
ErrExpiredToken = errors.New("this token has expired")
// ErrInvalidToken when the role doesn't match the DB
ErrInvalidToken = errors.New("this token needs to be reissued")
)