Skip to content

Commit bc8126f

Browse files
fix(cli): skip optional coder_external_auth (coder#13368)
* fix(cli): skip over coder_external_auth that are optional * chore: Delete package-lock.json
1 parent 5789ea5 commit bc8126f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cli/cliui/externalauth.go

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ func ExternalAuth(ctx context.Context, writer io.Writer, opts ExternalAuthOption
3737
if auth.Authenticated {
3838
return nil
3939
}
40+
if auth.Optional {
41+
continue
42+
}
4043

4144
_, _ = 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)
4245

0 commit comments

Comments
 (0)