MCPcopy Create free account
hub / github.com/algolia/cli / ClearToken

Function ClearToken

pkg/auth/token_store.go:96–98  ·  view source on GitHub ↗

ClearToken removes the stored token from the OS keychain.

()

Source from the content-addressed store, hash-verified

94
95// ClearToken removes the stored token from the OS keychain.
96func ClearToken() {
97 _ = keyring.Delete(keyringService, keyringUser)
98}
99
100// GetValidToken returns a valid access token, refreshing if necessary.
101func GetValidToken(client *dashboard.Client) (string, error) {

Calls

no outgoing calls