a2acalling 0.1.1 → 0.1.2
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/package.json +1 -1
- package/src/lib/tokens.js +2 -2
package/package.json
CHANGED
package/src/lib/tokens.js
CHANGED
|
@@ -257,9 +257,9 @@ class TokenStore {
|
|
|
257
257
|
options = { name: options };
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
const match = inviteUrl.match(/^oclaw:\/\/([^/]+)\/(.+)$/);
|
|
260
|
+
const match = inviteUrl.match(/^(?:a2a|oclaw):\/\/([^/]+)\/(.+)$/);
|
|
261
261
|
if (!match) {
|
|
262
|
-
throw new Error(`Invalid invite URL: ${inviteUrl}`);
|
|
262
|
+
throw new Error(`Invalid invite URL: ${inviteUrl}. Expected format: a2a://host/token`);
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
const [, host, token] = match;
|