From a7d07f091e161773b946fab62dab364fcef7ef75 Mon Sep 17 00:00:00 2001 From: Sam Markowitz Date: Tue, 17 Feb 2026 09:21:20 +0200 Subject: [PATCH 1/3] Add Apple as supported authentication provider in SDK documentation - Add Apple to loginWithProvider JSDoc with Sign in with Apple link - Include Apple in supported providers list - Add example showing Apple login usage Co-authored-by: Cursor --- src/modules/auth.types.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/modules/auth.types.ts b/src/modules/auth.types.ts index 52dedec..35a2a04 100644 --- a/src/modules/auth.types.ts +++ b/src/modules/auth.types.ts @@ -193,9 +193,10 @@ export interface AuthModule { * Supported providers: * - `'google'` - {@link https://developers.google.com/identity/protocols/oauth2 | Google OAuth}. Enabled by default. * - `'microsoft'` - {@link https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow | Microsoft OAuth}. Enable Microsoft in your app's authentication settings before specifying this provider. - * - `'facebook'` - {@link https://developers.facebook.com/docs/facebook-login | Facebook Login}. Enable this in your app's authentication settings before using. + * - `'facebook'` - {@link https://developers.facebook.com/docs/facebook-login | Facebook Login}. Enable Facebook in your app's authentication settings before using. + * - `'apple'` - {@link https://developer.apple.com/sign-in-with-apple/ | Sign in with Apple}. Enable Apple in your app's authentication settings before using this provider. * - * @param provider - The authentication provider to use: `'google'`, `'microsoft'`, or `'facebook'`. + * @param provider - The authentication provider to use: `'google'`, `'microsoft'`, `'facebook'`, or `'apple'`. * @param fromUrl - URL to redirect to after successful authentication. Defaults to `'/'`. * * @example @@ -209,6 +210,12 @@ export interface AuthModule { * // Login with Microsoft and redirect to dashboard * base44.auth.loginWithProvider('microsoft', '/dashboard'); * ``` + * + * @example + * ```typescript + * // Login with Apple + * base44.auth.loginWithProvider('apple', '/dashboard'); + * ``` */ loginWithProvider(provider: string, fromUrl?: string): void; From f07aaa68f33842360622f5e059dfaf5fc4a09a87 Mon Sep 17 00:00:00 2001 From: Sam Markowitz Date: Tue, 17 Feb 2026 09:26:18 +0200 Subject: [PATCH 2/3] Set SDK reference docs groups to expanded by default - Update file-processing.js to add expanded: true to generated groups - Update copy-to-local-docs.js to preserve expanded: true in nested groups - Ensures Client and Modules groups are open by default in docs Co-authored-by: Cursor --- scripts/mintlify-post-processing/copy-to-local-docs.js | 1 + .../file-processing/file-processing.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/scripts/mintlify-post-processing/copy-to-local-docs.js b/scripts/mintlify-post-processing/copy-to-local-docs.js index a50ed8a..a525159 100644 --- a/scripts/mintlify-post-processing/copy-to-local-docs.js +++ b/scripts/mintlify-post-processing/copy-to-local-docs.js @@ -151,6 +151,7 @@ function updateDocsJson(repoDir, sdkFiles) { const sdkReferencePages = Array.from(groupMap.entries()).map( ([groupName, pages]) => ({ group: groupName, + expanded: true, pages: pages.sort(), // Sort pages alphabetically within each group }) ); diff --git a/scripts/mintlify-post-processing/file-processing/file-processing.js b/scripts/mintlify-post-processing/file-processing/file-processing.js index 4599f7f..158843f 100755 --- a/scripts/mintlify-post-processing/file-processing/file-processing.js +++ b/scripts/mintlify-post-processing/file-processing/file-processing.js @@ -361,6 +361,7 @@ function generateDocsJson(docsContent) { if (docsContent.functions.length > 0 && categoryMap.functions) { groups.push({ group: getGroupName("functions", categoryMap), + expanded: true, pages: docsContent.functions, }); } @@ -368,6 +369,7 @@ function generateDocsJson(docsContent) { if (docsContent.interfaces.length > 0 && categoryMap.interfaces) { groups.push({ group: getGroupName("interfaces", categoryMap), + expanded: true, pages: docsContent.interfaces, }); } @@ -375,6 +377,7 @@ function generateDocsJson(docsContent) { if (docsContent.classes.length > 0 && categoryMap.classes) { groups.push({ group: getGroupName("classes", categoryMap), + expanded: true, pages: docsContent.classes, }); } @@ -391,6 +394,7 @@ function generateDocsJson(docsContent) { } else { groups.push({ group: groupName, + expanded: true, pages: docsContent.typeAliases, }); } From 39d647ba5a7c513ce24b9e9d80595dd92e88dee7 Mon Sep 17 00:00:00 2001 From: Sam Markowitz Date: Tue, 17 Feb 2026 10:33:27 +0200 Subject: [PATCH 3/3] Shorten example descriptions for loginWithProvider Changed from verbose descriptions to simple provider names (Google, Microsoft, Apple) Co-authored-by: Cursor --- src/modules/auth.types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/auth.types.ts b/src/modules/auth.types.ts index 35a2a04..3ced34a 100644 --- a/src/modules/auth.types.ts +++ b/src/modules/auth.types.ts @@ -201,19 +201,19 @@ export interface AuthModule { * * @example * ```typescript - * // Login with Google and return to current page + * // Google * base44.auth.loginWithProvider('google', window.location.pathname); * ``` * * @example * ```typescript - * // Login with Microsoft and redirect to dashboard + * // Microsoft * base44.auth.loginWithProvider('microsoft', '/dashboard'); * ``` * * @example * ```typescript - * // Login with Apple + * // Apple * base44.auth.loginWithProvider('apple', '/dashboard'); * ``` */