var (
ErrTokenExpired = errors.New("Token Expired, get a new one")
ErrTokenValidation = errors.New("JWT Token ValidationError")
ErrTokenParse = errors.New("JWT Token Error Parsing the token or empty token")
ErrTokenInvalid = errors.New("JWT Token is not Valid")
)
Generates a JSON Web Token given an userId (typically an id or an email), and the JWT options
to set SigningMethod and the keys you can check
http://github.com/dgrijalva/jwt-go
In case you use an symmetric-key algorithm set PublicKey and PrivateKey equal to the SecretKey ,