diff --git a/internal/cli/universal_login_customize.go b/internal/cli/universal_login_customize.go index dc346272e..f2fac3a88 100644 --- a/internal/cli/universal_login_customize.go +++ b/internal/cli/universal_login_customize.go @@ -607,14 +607,26 @@ func saveUniversalLoginBrandingData(ctx context.Context, api *auth0.API, data *u group, ctx := errgroup.WithContext(ctx) group.Go(func() (err error) { + if data.Settings == nil || data.Settings.String() == "{}" { + return nil + } + return api.Branding.Update(ctx, data.Settings) }) group.Go(func() (err error) { + if data.Template == nil || data.Template.String() == "{}" { + return nil + } + return api.Branding.SetUniversalLogin(ctx, data.Template) }) group.Go(func() (err error) { + if data.Theme == nil || data.Theme.String() == "{}" { + return nil + } + existingTheme, err := api.BrandingTheme.Default(ctx) if err == nil { return api.BrandingTheme.Update(ctx, existingTheme.GetID(), data.Theme)