MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / Logout

Function Logout

cli/internal/auth/logout.go:10–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func Logout() error {
11 err := cqapiauth.RemoveRefreshToken()
12 if err != nil {
13 return fmt.Errorf("failed to remove refresh token: %w", err)
14 }
15
16 err = config.UnsetValue("team")
17 if err != nil {
18 return fmt.Errorf("failed to unset team: %w", err)
19 }
20
21 return nil
22}

Callers

nothing calls this directly

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected