func (c *Client) CreateWebSession(user string) (*Session, error) {
	out, err := c.PostJSON(
		c.Endpoint("users", user, "web", "sessions"),
		createWebSessionReq{},
	)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	var sess *Session
	if err := json.Unmarshal(out.Bytes(), &sess); err != nil {
		return nil, err
	}
	return sess, nil
}
// CreateWebSession creates a new web session for a user
CreateWebSession creates a new web session for a user
// CreateWebSession creates a new web session for a user
func (c *Client) CreateWebSession(user string) (*Session, error) {
	out, err := c.PostJSON(
		c.Endpoint("users", user, "web", "sessions"),
		createWebSessionReq{},
	)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	var sess *Session
	if err := json.Unmarshal(out.Bytes(), &sess); err != nil {
		return nil, err
	}
	return sess, nil
}
func ( c * Client ) CreateWebSession ( user string ) ( * Session , error ) { out , err := c . PostJSON ( c . Endpoint ( " " , user , " " , " " ) , createWebSessionReq { } , ) if err != nil { return nil , trace . Wrap ( err ) } var sess * Session if err := json . Unmarshal ( out . Bytes ( ) , & sess ) ; err != nil { return nil , err } return sess , nil }
CreateWebSession creates a new web session for a user
CreateWebSession creates a new web session for a user