fix(cli): skip optional coder_external_auth (#13368)

* fix(cli): skip over coder_external_auth that are optional

* chore: Delete package-lock.json
This commit is contained in:
Michael Brewer
2024-05-29 17:37:54 +00:00
committed by GitHub
parent 5789ea5397
commit bc8126fa45
+3
View File
@@ -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)