limbo-component 1.6.4 → 1.6.5
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/limbo.cjs.js +1 -1
- package/dist/limbo.cjs.map +1 -1
- package/dist/limbo.es.js +6 -3
- package/dist/limbo.es.map +1 -1
- package/dist/limbo.min.js +4 -4
- package/dist/limbo.min.js.map +1 -1
- package/dist/limbo.umd.js +7 -7
- package/dist/limbo.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/limbo.es.js
CHANGED
|
@@ -38868,14 +38868,17 @@ class LimboInstance {
|
|
|
38868
38868
|
"data-limbo-mode": this.config.mode
|
|
38869
38869
|
},
|
|
38870
38870
|
React.createElement(App, {
|
|
38871
|
-
apiKey: this.config.apiKey,
|
|
38871
|
+
apiKey: this.config.apiKey || null,
|
|
38872
|
+
publicKey: this.config.publicKey || null,
|
|
38873
|
+
token: this.config.token || null,
|
|
38872
38874
|
prod: this.config.prod || false,
|
|
38873
38875
|
url: this.config.url,
|
|
38874
38876
|
features: this.config.features,
|
|
38875
38877
|
modeUI: this.config.modeUI || "full",
|
|
38876
38878
|
ui: this.config.ui,
|
|
38877
38879
|
callbacks: this._createCallbacks(),
|
|
38878
|
-
instanceId: this.id
|
|
38880
|
+
instanceId: this.id,
|
|
38881
|
+
authMode: this.config.authMode || this.config.publicKey ? "session" : "manual"
|
|
38879
38882
|
})
|
|
38880
38883
|
);
|
|
38881
38884
|
}
|
|
@@ -38980,7 +38983,7 @@ class LimboInstance {
|
|
|
38980
38983
|
* Validar configuración
|
|
38981
38984
|
*/
|
|
38982
38985
|
_validateConfig() {
|
|
38983
|
-
const hasAuth = this.config.auth?.apiKey || this.config.auth?.publicKey || this.config.apiKey || this.config.publicKey;
|
|
38986
|
+
const hasAuth = this.config.auth?.apiKey || this.config.auth?.publicKey || this.config.auth?.token || this.config.apiKey || this.config.publicKey || this.config.token;
|
|
38984
38987
|
if (!hasAuth) {
|
|
38985
38988
|
throw new Error(`LimboInstance ${this.id}: Authentication is required. Provide either auth.publicKey (recommended) or auth.apiKey (for server-side only)`);
|
|
38986
38989
|
}
|