@lovable.dev/cloud-auth-js 0.0.1-dev.2 → 0.0.2

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.
Files changed (2) hide show
  1. package/README.md +8 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -40,9 +40,9 @@ Creates a Lovable auth instance.
40
40
 
41
41
  **Config options:**
42
42
 
43
- | Option | Type | Default | Description |
44
- |--------|------|---------|-------------|
45
- | `oauthBrokerUrl` | `string` | `"/~oauth/initiate"` | OAuth broker initiate URL |
43
+ | Option | Type | Default | Description |
44
+ | ----------------------- | ---------- | ------------------------------- | ------------------------------------- |
45
+ | `oauthBrokerUrl` | `string` | `"/~oauth/initiate"` | OAuth broker initiate URL |
46
46
  | `supportedOAuthOrigins` | `string[]` | `["https://oauth.lovable.app"]` | Allowed origins for OAuth postMessage |
47
47
 
48
48
  ### `signInWithOAuth(provider, options?)`
@@ -51,11 +51,11 @@ Initiates OAuth sign-in flow.
51
51
 
52
52
  **Parameters:**
53
53
 
54
- | Parameter | Type | Description |
55
- |-----------|------|-------------|
56
- | `provider` | `"google" \| "apple"` | OAuth provider |
57
- | `options.redirect_uri` | `string` | Custom redirect URI (defaults to `window.location.origin`) |
58
- | `options.extraParams` | `Record<string, string>` | Additional params to send to the OAuth broker |
54
+ | Parameter | Type | Description |
55
+ | ---------------------- | ------------------------ | ---------------------------------------------------------- |
56
+ | `provider` | `"google" \| "apple"` | OAuth provider |
57
+ | `options.redirect_uri` | `string` | Custom redirect URI (defaults to `window.location.origin`) |
58
+ | `options.extraParams` | `Record<string, string>` | Additional params to send to the OAuth broker |
59
59
 
60
60
  **Returns:** `Promise<SignInWithOAuthResult>`
61
61
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovable.dev/cloud-auth-js",
3
- "version": "0.0.1-dev.2",
3
+ "version": "0.0.2",
4
4
  "description": "Lovable Cloud Auth JS",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",