@tesouro/embedded-components-widget-token 0.9.56 → 0.9.59
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.js +1 -2
- package/dist/index2.js +1 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as DEFAULT_EXPIRATION_IN_SECONDS, t as configureCreateWidgetToken, n as createWidgetToken };
|
|
1
|
+
export { DEFAULT_EXPIRATION_IN_SECONDS, configureCreateWidgetToken, createWidgetToken } from "./index2.js";
|
package/dist/index2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "crypto";
|
|
2
2
|
import { EncryptJWT as t } from "jose";
|
|
3
|
-
|
|
3
|
+
// src/lib/createWidgetToken.ts
|
|
4
4
|
var n = 480;
|
|
5
5
|
async function r({ clientId: n, clientSecret: r, widgetSecret: i, userId: a, userEmail: o, organizationReference: s, expirationInSeconds: c = 480 }) {
|
|
6
6
|
if (!i || !n || !r) throw Error("Missing required parameters for widget token generation: clientId, clientSecret, and widgetSecret are required");
|
|
@@ -50,5 +50,4 @@ function i({ clientId: e, clientSecret: t, widgetSecret: n, organizationReferenc
|
|
|
50
50
|
expirationInSeconds: l
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
//#endregion
|
|
54
53
|
export { n as DEFAULT_EXPIRATION_IN_SECONDS, i as configureCreateWidgetToken, r as createWidgetToken };
|