@outmarket-ai/react-sdk 0.4.0-alpha.1 → 0.5.0-alpha.0
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/README.md +5 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,8 +14,9 @@ Using the SDK requires Outmarket's approval. See the `LICENSE` file in the packa
|
|
|
14
14
|
browser blocks the SDK's calls to Outmarket (CORS).
|
|
15
15
|
|
|
16
16
|
2. **Create an API key.** An Outmarket System Admin creates it in **Settings → API Keys** with the
|
|
17
|
-
`auth` permission and your servers' IP addresses.
|
|
18
|
-
|
|
17
|
+
`auth` permission (**Embed sessions**) and your servers' IP addresses. Grant `auth` explicitly:
|
|
18
|
+
Full access (`*`) does not include it. Keep the key on your server: it can sign in as any eligible
|
|
19
|
+
member of your workspace.
|
|
19
20
|
|
|
20
21
|
3. **Install the SDK.** It needs React 19 or newer.
|
|
21
22
|
|
|
@@ -34,7 +35,8 @@ Using the SDK requires Outmarket's approval. See the `LICENSE` file in the packa
|
|
|
34
35
|
|
|
35
36
|
Take the email from the signed-in user's session on your server, and only an address your sign-in
|
|
36
37
|
has verified the user owns (a confirmed email or a verified identity-provider claim). Never take it
|
|
37
|
-
from anything the browser sends. The user must be a member of your Outmarket workspace
|
|
38
|
+
from anything the browser sends. The user must be a member of your Outmarket workspace, and not an
|
|
39
|
+
Admin or SuperAdmin: those members can't be signed in this way. Return the `201` body to your page
|
|
38
40
|
unchanged, with `Cache-Control: no-store`, and keep it out of URLs and logs. Mint once per sign-in:
|
|
39
41
|
the SDK refreshes the session itself.
|
|
40
42
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outmarket-ai/react-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0-alpha.0",
|
|
4
4
|
"description": "Embed the real Outmarket workflow surface (catalog + single workflow) in any React app.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"url": "git+https://github.com/Outmarket-AI/outmarket-monorepo.git",
|
|
62
62
|
"directory": "apps/product-frontend/packages/outmarket-react-sdk"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "4019928ee297c9f06a1bbdb748f215574c3d0040"
|
|
65
65
|
}
|