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

Method ID

bridge/core/auth/token.go:42–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func (t *Token) ID() entity.Id {
43 h := sha256.New()
44 _, _ = h.Write(t.salt)
45 _, _ = h.Write([]byte(t.target))
46 _, _ = h.Write([]byte(t.Value))
47 return entity.Id(fmt.Sprintf("%x", h.Sum(nil)))
48}
49
50func (t *Token) Kind() CredentialKind {
51 return KindToken

Callers 3

TestCredentialFunction · 0.95
TestGithubPushPullFunction · 0.95
runBridgeAuthAddTokenFunction · 0.95

Calls 3

IdTypeAlias · 0.92
NewMethod · 0.45
WriteMethod · 0.45

Tested by 2

TestCredentialFunction · 0.76
TestGithubPushPullFunction · 0.76