MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / saveAuthToken

Function saveAuthToken

app/cli/cmd/auth_login.go:142–145  ·  view source on GitHub ↗

Save token to config file

(token string)

Source from the content-addressed store, hash-verified

140
141// Save token to config file
142func saveAuthToken(token string) error {
143 viper.Set(confOptions.authToken.viperKey, token)
144 return viper.WriteConfig()
145}
146
147func (a *app) handleCallback(w http.ResponseWriter, r *http.Request) {
148 token := r.URL.Query().Get("t")

Callers 2

headlessAuthFunction · 0.85
handleCallbackMethod · 0.85

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected