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

Method Validate

bridge/core/auth/token.go:55–64  ·  view source on GitHub ↗

Validate ensure token important fields are valid

()

Source from the content-addressed store, hash-verified

53
54// Validate ensure token important fields are valid
55func (t *Token) Validate() error {
56 err := t.credentialBase.validate()
57 if err != nil {
58 return err
59 }
60 if t.Value == "" {
61 return fmt.Errorf("missing value")
62 }
63 return nil
64}
65
66func (t *Token) toConfig() map[string]string {
67 return map[string]string{

Callers 1

runBridgeAuthAddTokenFunction · 0.95

Calls 2

ErrorfMethod · 0.80
validateMethod · 0.45

Tested by

no test coverage detected