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

Method LoginWithToken

internal/auth/auth.go:193–199  ·  view source on GitHub ↗

LoginWithToken stores a pre-provided bearer token.

(token string)

Source from the content-addressed store, hash-verified

191
192// LoginWithToken stores a pre-provided bearer token.
193func (m *Manager) LoginWithToken(token string) error {
194 creds := &Credentials{
195 AccessToken: token,
196 OAuthType: "token",
197 }
198 return m.store.Save(m.baseURL, creds)
199}
200
201// LoginWithCookie stores a session cookie.
202func (m *Manager) LoginWithCookie(cookie string) error {

Callers 2

TestIsAuthenticatedFunction · 0.80
newAuthLoginCommandFunction · 0.80

Calls 1

SaveMethod · 0.45

Tested by 1

TestIsAuthenticatedFunction · 0.64