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

Function requireAuth

internal/cmd/root.go:165–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163}
164
165func requireAuth() error {
166 if !authMgr.IsAuthenticated() {
167 return output.ErrAuth("not logged in — run `hey auth login` first")
168 }
169 return nil
170}
171
172// migrateOldCredentials migrates credentials from the old config.json format
173// to the new credential store (keyring or credentials.json).

Callers 15

runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
newRootCmdFunction · 0.85
runMethod · 0.85

Calls 1

IsAuthenticatedMethod · 0.80

Tested by

no test coverage detected