func (s *Session) AuthID() *identity.ID {
	return s.auth.GetID()
}
AuthID returns the auth id (e.g. user or machine token 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
}
func (s *Session) ID() *identity.ID {
	return s.identity.GetID()
}