()
| 303 | } |
| 304 | |
| 305 | func (c *Client) useTLS() bool { |
| 306 | return strings.HasPrefix(c.discoRoot(), "https://") |
| 307 | } |
| 308 | |
| 309 | // SetupAuth sets the client's authMode. It tries from the environment first if we're on android or in dev mode, and then from the client configuration. |
| 310 | func (c *Client) SetupAuth() error { |
no test coverage detected