MCPcopy Create free account
hub / github.com/git-bug/git-bug / NewLoginFromConfig

Function NewLoginFromConfig

bridge/core/auth/login.go:28–38  ·  view source on GitHub ↗
(conf map[string]string)

Source from the content-addressed store, hash-verified

26}
27
28func NewLoginFromConfig(conf map[string]string) (*Login, error) {
29 base, err := newCredentialBaseFromData(conf)
30 if err != nil {
31 return nil, err
32 }
33
34 return &Login{
35 credentialBase: base,
36 Login: conf[keyringKeyLoginLogin],
37 }, nil
38}
39
40func (lp *Login) ID() entity.Id {
41 h := sha256.New()

Callers 1

decodeFunction · 0.85

Calls 1

Tested by

no test coverage detected