@rlynicrisis/link 0.0.8 → 0.0.9

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rlynicrisis/link",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
5
  "description": "OpenClaw Link channel plugin",
6
6
  "files": [
@@ -291,7 +291,11 @@ export class LinkClient extends EventEmitter {
291
291
 
292
292
  try {
293
293
  console.log('Refreshing access token via SSO...');
294
- const url = new URL('/oauth2/token', this.config.ssoUrl);
294
+ let ssoUrl = this.config.ssoUrl;
295
+ if (!ssoUrl.endsWith('/')) {
296
+ ssoUrl += '/';
297
+ }
298
+ const url = new URL('oauth2/token', ssoUrl);
295
299
 
296
300
  // Assume client credentials (clientId/clientSecret) are encoded in basic auth or not needed?
297
301
  // User input implies "Authorization: Basic Y2xpZW50SWQ6Y2xpZW50U2VjcmV0" (clientId:clientSecret)