LoginWithCookie stores a session cookie.
(cookie string)
| 200 | |
| 201 | // LoginWithCookie stores a session cookie. |
| 202 | func (m *Manager) LoginWithCookie(cookie string) error { |
| 203 | creds := &Credentials{ |
| 204 | SessionCookie: cookie, |
| 205 | OAuthType: "cookie", |
| 206 | } |
| 207 | return m.store.Save(m.baseURL, creds) |
| 208 | } |
| 209 | |
| 210 | // Logout removes stored credentials. |
| 211 | func (m *Manager) Logout() error { |
no test coverage detected