// GenerateToken generates new jwt token
GenerateToken generates new jwt token
// GenerateToken generates new jwt token
func (j *JWT) GenerateToken() (string, error) {
	t := time.Now()
	return jwt.NewWithClaims(j.algo, jwt.MapClaims{
		"iat": t.Unix(),
		"exp": t.Add(j.duration).Unix(),
	}).SignedString(j.key)
}
func ( j * JWT ) GenerateToken ( ) ( string , error ) { t := time . Now ( ) return jwt . NewWithClaims ( j . algo , jwt . MapClaims { " " : t . Unix ( ) , " " : t . Add ( j . duration ) . Unix ( ) , } ) . SignedString ( j . key ) }
GenerateToken generates new jwt token
GenerateToken generates new jwt token