// Get tries to fetch existing session for given jwt token
Get tries to fetch existing session for given jwt token
// Get tries to fetch existing session for given jwt token
func (s *Service) Get(token string) (*chisk.AuthUser, error) {
	val, err := s.client.Get(token).Result()
	if err != nil {
		return nil, err
	}
	i, err := s.decodeItem(val)
	if err != nil {
		return nil, err
	}
	return i.User, nil
}
func ( s * Service ) Get ( token string ) ( * chisk . AuthUser , error ) { val , err := s . client . Get ( token ) . Result ( ) if err != nil { return nil , err } i , err := s . decodeItem ( val ) if err != nil { return nil , err } return i . User , nil }
Get tries to fetch existing session for given jwt token
Get tries to fetch existing session for given jwt token