From 6bf24f6e19651521e1fc2284cf05248a304987c9 Mon Sep 17 00:00:00 2001 From: Lukas Malkmus Date: Mon, 13 May 2024 11:56:00 +0200 Subject: [PATCH] fix: drop selfhost hack --- internal/cmd/auth/auth_login.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cmd/auth/auth_login.go b/internal/cmd/auth/auth_login.go index 188fce2..f167cf2 100644 --- a/internal/cmd/auth/auth_login.go +++ b/internal/cmd/auth/auth_login.go @@ -152,7 +152,7 @@ func completeLogin(ctx context.Context, opts *loginOptions) error { // If only one organization is available, that one is selected by default, // without asking the user for it. if opts.OrganizationID == "" { - axiomClient, err := client.New(ctx, opts.apiURL, opts.Token, "axiom", opts.Config.Insecure) + axiomClient, err := client.New(ctx, opts.apiURL, opts.Token, "", opts.Config.Insecure) if err != nil { return err } @@ -258,7 +258,7 @@ func autoLogin(ctx context.Context, opts *loginOptions) error { // If only one organization is available, that one is selected by default, // without asking the user for it. if opts.OrganizationID == "" { - axiomClient, err := client.New(ctx, opts.apiURL, opts.Token, "axiom", opts.Config.Insecure) + axiomClient, err := client.New(ctx, opts.apiURL, opts.Token, "", opts.Config.Insecure) if err != nil { return err }