@lovable.dev/cloud-auth-js 0.0.2-dev.1 → 0.0.3-dev.1

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.
package/dist/index.cjs CHANGED
@@ -159,7 +159,7 @@ function createAuth(config = {}) {
159
159
  }
160
160
 
161
161
  // src/index.ts
162
- function createLovableAuth(config) {
162
+ function createLovableAuth(config = {}) {
163
163
  return createAuth(config);
164
164
  }
165
165
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.d.cts CHANGED
@@ -28,6 +28,6 @@ interface LovableAuth {
28
28
  signInWithOAuth: (provider: OAuthProvider, opts?: SignInWithOAuthOptions) => Promise<SignInWithOAuthResult>;
29
29
  }
30
30
 
31
- declare function createLovableAuth(config: LovableAuthConfig): LovableAuth;
31
+ declare function createLovableAuth(config?: LovableAuthConfig): LovableAuth;
32
32
 
33
33
  export { type LovableAuth, type LovableAuthConfig, type OAuthProvider, type OAuthTokens, type SignInWithOAuthOptions, type SignInWithOAuthResult, createLovableAuth };
package/dist/index.d.ts CHANGED
@@ -28,6 +28,6 @@ interface LovableAuth {
28
28
  signInWithOAuth: (provider: OAuthProvider, opts?: SignInWithOAuthOptions) => Promise<SignInWithOAuthResult>;
29
29
  }
30
30
 
31
- declare function createLovableAuth(config: LovableAuthConfig): LovableAuth;
31
+ declare function createLovableAuth(config?: LovableAuthConfig): LovableAuth;
32
32
 
33
33
  export { type LovableAuth, type LovableAuthConfig, type OAuthProvider, type OAuthTokens, type SignInWithOAuthOptions, type SignInWithOAuthResult, createLovableAuth };
package/dist/index.js CHANGED
@@ -133,7 +133,7 @@ function createAuth(config = {}) {
133
133
  }
134
134
 
135
135
  // src/index.ts
136
- function createLovableAuth(config) {
136
+ function createLovableAuth(config = {}) {
137
137
  return createAuth(config);
138
138
  }
139
139
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovable.dev/cloud-auth-js",
3
- "version": "0.0.2-dev.1",
3
+ "version": "0.0.3-dev.1",
4
4
  "description": "Lovable Cloud Auth JS",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",