Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions cmd/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ func loginCmd() *cobra.Command {
}

dependencies.Logger.Verbose().
Str("password", password).
Str("email", email).
Str("authCode", util.IfEmpty(authCode, "<nil>")).
Msg("logging in")

output, err := dependencies.AppStore.Login(appstore.LoginInput{
Expand Down Expand Up @@ -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
Expand Down