code: func IsNoSessionError(err error) bool {
  	_, ok := err.(noSessionInterface)
  	if ok {
  		return ok
  	}
  
  	_, ok = errors.Cause(err).(noSessionInterface)
  	return ok
  }
docs: // IsNoSessionError checks an error to see if it means that there was no session