From 0fd0bab8607491df0c479fcf8406f5b1749120ca Mon Sep 17 00:00:00 2001 From: yash-rajpal Date: Fri, 29 May 2026 17:56:49 +0530 Subject: [PATCH 1/2] hide required login buttons --- apps/meteor/app/api/server/v1/settings.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/meteor/app/api/server/v1/settings.ts b/apps/meteor/app/api/server/v1/settings.ts index 97e4a51d3133c..2183a291a3fc1 100644 --- a/apps/meteor/app/api/server/v1/settings.ts +++ b/apps/meteor/app/api/server/v1/settings.ts @@ -185,8 +185,12 @@ API.v1.get( return service; } - if ((service as OAuthConfiguration).custom || (service.service && ['saml', 'cas', 'wordpress'].includes(service.service))) { - return { ...service }; + if (service.service && ['saml', 'cas', 'ldap'].includes(service.service)) { + return { ...service, hideButtonOnMobile: false }; + } + + if ((service as OAuthConfiguration).custom || (service.service && service.service === 'wordpress')) { + return { ...service, hideButtonOnMobile: true }; } return { @@ -200,6 +204,7 @@ API.v1.get( buttonColor: service.buttonColor || '', buttonLabelColor: service.buttonLabelColor || '', custom: false, + hideButtonOnMobile: true, }; }), }); From 769d4d453a66acf95a7b0e9825a86401bc4e92bc Mon Sep 17 00:00:00 2001 From: yash-rajpal Date: Mon, 1 Jun 2026 21:43:03 +0530 Subject: [PATCH 2/2] never hide sign-in with apple button --- apps/meteor/app/api/server/v1/settings.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/meteor/app/api/server/v1/settings.ts b/apps/meteor/app/api/server/v1/settings.ts index 2183a291a3fc1..3e6cc60a0a0b7 100644 --- a/apps/meteor/app/api/server/v1/settings.ts +++ b/apps/meteor/app/api/server/v1/settings.ts @@ -185,6 +185,11 @@ API.v1.get( return service; } + // CAUTION: Never hide sign-in with apple button from mobile app. + if (service.service && ['apple'].includes(service.service)) { + return { ...service, hideButtonOnMobile: false }; + } + if (service.service && ['saml', 'cas', 'ldap'].includes(service.service)) { return { ...service, hideButtonOnMobile: false }; }