@truly-you/trulyyou-web-sdk 0.1.2 → 0.1.4
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.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -2
- package/src/sdk/TrulyYouSDK.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truly-you/trulyyou-web-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "TrulyYou Web SDK for secure authentication and payload signing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.esm.js",
|
|
@@ -44,4 +44,3 @@
|
|
|
44
44
|
"pusher-js": "^8.4.0-rc2"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
|
package/src/sdk/TrulyYouSDK.ts
CHANGED
|
@@ -353,12 +353,12 @@ export class TrulyYouSDK {
|
|
|
353
353
|
const clientId = `client_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`
|
|
354
354
|
|
|
355
355
|
// Create session directly via SDK backend
|
|
356
|
+
// Backend will fetch authFlowId from the app document
|
|
356
357
|
const sessionResponse = await fetch(`${this.apiUrl}/api/sessions`, {
|
|
357
358
|
method: 'POST',
|
|
358
359
|
headers: { 'Content-Type': 'application/json' },
|
|
359
360
|
body: JSON.stringify({
|
|
360
361
|
appId: appId,
|
|
361
|
-
flowId: app.authFlowId,
|
|
362
362
|
clientId: clientId
|
|
363
363
|
})
|
|
364
364
|
})
|