@base44-preview/sdk 0.8.18-pr.81.32604ff → 0.8.18-pr.88.d4664b3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -174,11 +174,15 @@ export interface AuthModule {
|
|
|
174
174
|
/**
|
|
175
175
|
* Redirects the user to a third-party authentication provider's login page.
|
|
176
176
|
*
|
|
177
|
-
* Initiates OAuth
|
|
177
|
+
* Initiates an OAuth login flow with one of the built-in providers. Requires a browser environment and can't be used in the backend.
|
|
178
178
|
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
179
|
+
* Supported providers:
|
|
180
|
+
* - `'google'` - {@link https://developers.google.com/identity/protocols/oauth2 | Google OAuth}. Enabled by default.
|
|
181
|
+
* - `'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.
|
|
182
|
+
* - `'facebook'` - {@link https://developers.facebook.com/docs/facebook-login | Facebook Login}. Enable this in your app's authentication settings before using.
|
|
183
|
+
*
|
|
184
|
+
* @param provider - The authentication provider to use: `'google'`, `'microsoft'`, or `'facebook'`.
|
|
185
|
+
* @param fromUrl - URL to redirect to after successful authentication. Defaults to `'/'`.
|
|
182
186
|
*
|
|
183
187
|
* @example
|
|
184
188
|
* ```typescript
|
|
@@ -188,10 +192,9 @@ export interface AuthModule {
|
|
|
188
192
|
*
|
|
189
193
|
* @example
|
|
190
194
|
* ```typescript
|
|
191
|
-
* // Login with
|
|
195
|
+
* // Login with Microsoft and redirect to dashboard
|
|
192
196
|
* base44.auth.loginWithProvider('microsoft', '/dashboard');
|
|
193
197
|
* ```
|
|
194
|
-
* @internal
|
|
195
198
|
*/
|
|
196
199
|
loginWithProvider(provider: string, fromUrl?: string): void;
|
|
197
200
|
/**
|