func (c *Client) SignIn(user string, password []byte) (*Session, error) {
	out, err := c.PostJSON(
		c.Endpoint("users", user, "web", "signin"),
		signInReq{
			Password: string(password),
		},
	)
	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
}
// SignIn checks if the web access password is valid, and if it is valid
// returns a secure web session id.
SignIn checks if the web access password is valid, and if it is valid
returns a secure web session id.
// SignIn checks if the web access password is valid and if it is valid // returns a secure web session id .
func (c *Client) SignIn(user string, password []byte) (*Session, error) {
	out, err := c.PostJSON(
		c.Endpoint("users", user, "web", "signin"),
		signInReq{
			Password: string(password),
		},
	)
	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 ) SignIn ( user string , password [ ] byte ) ( * Session , error ) { out , err := c . PostJSON ( c . Endpoint ( " " , user , " " , " " ) , signInReq { Password : string ( password ) , } , ) 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 }
SignIn checks if the web access password is valid, and if it is valid
returns a secure web session id.
SignIn checks if the web access password is valid and if it is valid returns a secure web session id .