func (s *Session) ID() *identity.ID {
	return s.identity.GetID()
}
ID returns the identity ID (e.g. user or machine id)
package api
import (
	"context"
	"encoding/json"
	"errors"
	"github.com/manifoldco/go-base64"
	"github.com/manifoldco/torus-cli/apitypes"
	"github.com/manifoldco/torus-cli/envelope"
	"github.com/manifoldco/torus-cli/identity"
)
var errUnknownSessionType = errors.New("Unknown session type")
type Session struct {
	sessionType apitypes.SessionType
	identity    envelope.Envelope
	auth        envelope.Envelope
}
func (s *Session) Type() apitypes.SessionType {
	return s.sessionType
}