// Update updates current user's session
Update updates current user's session
// Update updates current user ' s session
func (s *Service) Update(user *chisk.User) error {
	if user.Token == "" {
		return fmt.Errorf("missing token")
	}
	i := item{
		User: user.AuthUser(),
	}
	return s.client.GetSet(user.Token, i.encode()).Err()
}
func ( s * Service ) Update ( user * chisk . User ) error { if user . Token == " " { return fmt . Errorf ( " " ) } i := item { User : user . AuthUser ( ) , } return s . client . GetSet ( user . Token , i . encode ( ) ) . Err ( ) }
Update updates current user's session
Update updates current user ' s session
// if User never logged in