MCPcopy Create free account
hub / github.com/brimdata/super / save

Method save

api/client/auth0/store.go:76–81  ·  view source on GitHub ↗
(creds *Credentials)

Source from the content-addressed store, hash-verified

74}
75
76func (s Store) save(creds *Credentials) error {
77 if err := os.MkdirAll(filepath.Dir(s.path), 0700); err != nil {
78 return err
79 }
80 return pkgfs.MarshalJSONFile(creds, s.path, 0600)
81}
82
83type Credentials struct {
84 Version int `json:"version"`

Callers 2

SetTokensMethod · 0.95
RemoveTokensMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected