sheetlink 0.1.9 → 0.1.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/package.json +1 -1
- package/src/commands/auth.js +1 -2
package/package.json
CHANGED
package/src/commands/auth.js
CHANGED
|
@@ -94,8 +94,7 @@ async function googleOAuthFlow() {
|
|
|
94
94
|
|
|
95
95
|
res.writeHead(200, { 'Content-Type': 'text/html' });
|
|
96
96
|
res.end('<!DOCTYPE html><html><head><meta charset="UTF-8"><title>SheetLink</title><script>window.location.replace("https://sheetlink.app/cli/welcome");</script></head><body></body></html>');
|
|
97
|
-
server.closeAllConnections?.();
|
|
98
|
-
server.close();
|
|
97
|
+
res.on('finish', () => { server.closeAllConnections?.(); server.close(); });
|
|
99
98
|
|
|
100
99
|
if (error) return reject(new Error(`OAuth error: ${error}`));
|
|
101
100
|
if (returnedState !== state) return reject(new Error('State mismatch — possible CSRF'));
|