Skip to content

Commit b910595

Browse files
dp-rufusgeelen
authored andcommitted
Attempt auto close
1 parent 114ee3c commit b910595

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ export function setupOAuthCallbackServerWithLongPoll(options: OAuthCallbackServe
300300
log('Auth code received, resolving promise')
301301
authCompletedResolve(code)
302302

303-
res.send('Authorization successful! You may close this window and return to the CLI.')
303+
res.send('Authorization successful! You may close this window and return to the CLI.' +
304+
'<script>window.close();</script>')
304305

305306
// Notify main flow that auth code is available
306307
options.events.emit('auth-code-received', code)

0 commit comments

Comments
 (0)