From 1335a91f2637645c7e9791e58c3e94d50cc8c076 Mon Sep 17 00:00:00 2001 From: Arne Luenser Date: Mon, 23 Sep 2024 12:19:19 +0200 Subject: [PATCH] fix: redirect user before finalizing OAuth2 login --- cmd/cloudx/client/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cloudx/client/auth.go b/cmd/cloudx/client/auth.go index a6b31325..f68a1864 100644 --- a/cmd/cloudx/client/auth.go +++ b/cmd/cloudx/client/auth.go @@ -225,8 +225,8 @@ func (h *CommandHelper) oAuth2DanceWithServer(ctx context.Context, client *oauth serverErr <- fmt.Errorf("failed OAuth2 token exchange: %w", err) return } - serverToken <- t redirectOK(w, r) + serverToken <- t }), } go func() { _ = srv.Serve(l) }()