@lightworkai.official/debug-capture 0.9.0 → 0.9.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.
Files changed (2) hide show
  1. package/README.md +16 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -131,6 +131,22 @@ Two things about the token, both enforced on our side rather than yours:
131
131
  You do not have to shorten `expiresIn` for this: the token is fetched at click
132
132
  time, so it is always fresh when it is used.
133
133
 
134
+ ### If your app and the realm share an identity provider
135
+
136
+ Then you write **nothing at all** — no secret, no route, no `identity` callback.
137
+ Ask the support team to put the realm on OIDC against the same provider your app
138
+ already uses, and point the button at it:
139
+
140
+ ```tsx
141
+ <a href={`${SUPPORT_HOST}/api/auth/oidc/${REALM_ID}/login?return=/me`}>ดูปัญหาที่แจ้ง</a>
142
+ ```
143
+
144
+ Your user already has a session with that provider, so the round trip is silent.
145
+ The support host signs them in and lands them on their own ticket list. `return`
146
+ must be a path on the support host; anything else is ignored, on both sides.
147
+
148
+ Use the token route above when your app authenticates people some other way.
149
+
134
150
  ### Doing it without our button
135
151
 
136
152
  `openSupportPortal()` is the same thing as a function, and `supportPortalUrl()`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightworkai.official/debug-capture",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Report-a-problem widget: rolling network/console/action capture, annotated screenshot, and submission to a Lightwork Support host",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",