MCPcopy Create free account
hub / github.com/basecamp/hey-cli / LoginWithCookie

Method LoginWithCookie

internal/auth/auth.go:202–208  ·  view source on GitHub ↗

LoginWithCookie stores a session cookie.

(cookie string)

Source from the content-addressed store, hash-verified

200
201// LoginWithCookie stores a session cookie.
202func (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.
211func (m *Manager) Logout() error {

Callers 1

newAuthLoginCommandFunction · 0.80

Calls 1

SaveMethod · 0.45

Tested by

no test coverage detected