Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions scripts/mintlify-post-processing/copy-to-local-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,20 +361,23 @@ function generateDocsJson(docsContent) {
if (docsContent.functions.length > 0 && categoryMap.functions) {
groups.push({
group: getGroupName("functions", categoryMap),
expanded: true,
pages: docsContent.functions,
});
}

if (docsContent.interfaces.length > 0 && categoryMap.interfaces) {
groups.push({
group: getGroupName("interfaces", categoryMap),
expanded: true,
pages: docsContent.interfaces,
});
}

if (docsContent.classes.length > 0 && categoryMap.classes) {
groups.push({
group: getGroupName("classes", categoryMap),
expanded: true,
pages: docsContent.classes,
});
}
Expand All @@ -391,6 +394,7 @@ function generateDocsJson(docsContent) {
} else {
groups.push({
group: groupName,
expanded: true,
pages: docsContent.typeAliases,
});
}
Expand Down
15 changes: 11 additions & 4 deletions src/modules/auth.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,22 +193,29 @@ 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
* ```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
* // Apple
* base44.auth.loginWithProvider('apple', '/dashboard');
* ```
*/
loginWithProvider(provider: string, fromUrl?: string): void;

Expand Down