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