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

Method SetTokens

api/client/auth0/store.go:32–39  ·  view source on GitHub ↗
(uri string, tokens Tokens)

Source from the content-addressed store, hash-verified

30}
31
32func (s Store) SetTokens(uri string, tokens Tokens) error {
33 creds, err := s.load()
34 if err != nil {
35 return err
36 }
37 creds.AddTokens(uri, tokens)
38 return s.save(creds)
39}
40
41func (s Store) RemoveTokens(uri string) error {
42 creds, err := s.load()

Callers 4

TestClientRedirectReplayFunction · 0.95
RunMethod · 0.80
RunMethod · 0.80
refreshAuthTokenMethod · 0.80

Calls 3

loadMethod · 0.95
saveMethod · 0.95
AddTokensMethod · 0.80

Tested by 1

TestClientRedirectReplayFunction · 0.76