From bc8126fa45b7d8ea8e82f6ffc96a0317855210ee Mon Sep 17 00:00:00 2001 From: Michael Brewer Date: Wed, 29 May 2024 10:37:54 -0700 Subject: [PATCH] fix(cli): skip optional coder_external_auth (#13368) * fix(cli): skip over coder_external_auth that are optional * chore: Delete package-lock.json --- cli/cliui/externalauth.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/cliui/externalauth.go b/cli/cliui/externalauth.go index 2e416ae3b5..b1dce47994 100644 --- a/cli/cliui/externalauth.go +++ b/cli/cliui/externalauth.go @@ -37,6 +37,9 @@ func ExternalAuth(ctx context.Context, writer io.Writer, opts ExternalAuthOption if auth.Authenticated { return nil } + if auth.Optional { + continue + } _, _ = fmt.Fprintf(writer, "You must authenticate with %s to create a workspace with this template. Visit:\n\n\t%s\n\n", auth.DisplayName, auth.AuthenticateURL)