MCPcopy Index your code
hub / github.com/rilldata/rill / SetAccessToken

Method SetAccessToken

cli/pkg/dotrill/dotrill.go:152–154  ·  view source on GitHub ↗

SetToken saves an auth token

(token string)

Source from the content-addressed store, hash-verified

150
151// SetToken saves an auth token
152func (d DotRill) SetAccessToken(token string) error {
153 return d.Set(CredentialsFilename, AccessTokenCredentialsKey, token)
154}
155
156// GetBackupToken loads the original auth token
157func (d DotRill) GetBackupToken() (string, error) {

Callers 9

NewFunction · 0.80
authCallbackHandlerMethod · 0.80
TestTokenFunction · 0.80
switchEnvFunction · 0.80
LoginFunction · 0.80
LogoutFunction · 0.80
AssumeCmdFunction · 0.80
UnassumeUserFunction · 0.80

Calls 1

SetMethod · 0.95

Tested by 1

TestTokenFunction · 0.64