hyperstack-react 0.6.4 → 0.6.6
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 +4 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -6976,6 +6976,7 @@ class ConnectionManager {
|
|
|
6976
6976
|
if (this.authConfig?.tokenEndpoint) {
|
|
6977
6977
|
return this.authConfig.tokenEndpoint;
|
|
6978
6978
|
}
|
|
6979
|
+
// Require publishableKey for hosted token endpoint
|
|
6979
6980
|
if (this.hostedHyperstackUrl && this.authConfig?.publishableKey) {
|
|
6980
6981
|
return DEFAULT_HOSTED_TOKEN_ENDPOINT;
|
|
6981
6982
|
}
|
|
@@ -7020,8 +7021,10 @@ class ConnectionManager {
|
|
|
7020
7021
|
return this.currentToken;
|
|
7021
7022
|
}
|
|
7022
7023
|
const strategy = this.getAuthStrategy();
|
|
7024
|
+
// For hosted Hyperstack URLs, auth is required - fail early with clear message
|
|
7023
7025
|
if (strategy.kind === 'none' && this.hostedHyperstackUrl) {
|
|
7024
|
-
throw new HyperStackError('
|
|
7026
|
+
throw new HyperStackError('Hyperstack authentication required. Please provide auth.publishableKey to HyperstackProvider. ' +
|
|
7027
|
+
'Get your key from https://usehyperstack.com/dashboard', 'AUTH_REQUIRED');
|
|
7025
7028
|
}
|
|
7026
7029
|
switch (strategy.kind) {
|
|
7027
7030
|
case 'static-token':
|