squidcloudctl 3.0.9 → 3.0.10
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/commands/fs/mount.js +13 -1
- package/package.json +1 -1
|
@@ -34,8 +34,20 @@ export default async function fsMount(...args) {
|
|
|
34
34
|
argv.push('-bridge', String(opts.bridge || 'https://aouqcwbdoyrccjcrhzzi.supabase.co/functions/v1/squidfs-bridge'));
|
|
35
35
|
console.log(`\n ${chalk.bold('SquidFS')} ${muted(mountPoint && !opts.webdav ? `mounting at ${mountPoint}` : `WebDAV → http://localhost:${opts.port || 8099}/`)}`);
|
|
36
36
|
console.log(` ${muted('files stay encrypted end-to-end; edits sync back automatically. Ctrl+C to stop.')}\n`);
|
|
37
|
+
// Also fetch a short-lived auth token for direct API proxy downloads
|
|
38
|
+
let authToken = '';
|
|
39
|
+
try {
|
|
40
|
+
const { sbToken } = await import('../../lib/auth/oauth-session.js');
|
|
41
|
+
if (sbToken)
|
|
42
|
+
authToken = sbToken;
|
|
43
|
+
}
|
|
44
|
+
catch { }
|
|
37
45
|
const child = spawn(argv[0], argv.slice(1), {
|
|
38
|
-
env: {
|
|
46
|
+
env: {
|
|
47
|
+
...process.env,
|
|
48
|
+
SQUIDCLOUD_API_KEY: apiKey,
|
|
49
|
+
SQUIDCLOUD_AUTH_TOKEN: authToken,
|
|
50
|
+
},
|
|
39
51
|
stdio: 'inherit',
|
|
40
52
|
});
|
|
41
53
|
writeSession({
|