diff --git a/cmd/auth.go b/cmd/auth.go index ee6aeee4..f9576197 100644 --- a/cmd/auth.go +++ b/cmd/auth.go @@ -78,9 +78,7 @@ func loginCmd() *cobra.Command { } dependencies.Logger.Verbose(). - Str("password", password). Str("email", email). - Str("authCode", util.IfEmpty(authCode, "")). Msg("logging in") output, err := dependencies.AppStore.Login(appstore.LoginInput{ @@ -161,6 +159,12 @@ func revokeCmd() *cobra.Command { return err } + cookieJarPath := dependencies.Machine.HomeDirectory() + string(os.PathSeparator) + + ConfigDirectoryName + string(os.PathSeparator) + CookieJarFileName + if err := dependencies.OS.Remove(cookieJarPath); err != nil && !dependencies.OS.IsNotExist(err) { + return fmt.Errorf("failed to remove cookie jar: %w", err) + } + dependencies.Logger.Log().Bool("success", true).Send() return nil