Attempt auto close

This commit is contained in:
dp-rufus 2025-04-18 03:30:43 +01:00 committed by Glen Maddern
parent 114ee3c4b6
commit 477cfce238

View file

@ -300,7 +300,8 @@ export function setupOAuthCallbackServerWithLongPoll(options: OAuthCallbackServe
log('Auth code received, resolving promise')
authCompletedResolve(code)
res.send('Authorization successful! You may close this window and return to the CLI.')
res.send('Authorization successful! You may close this window and return to the CLI.' +
'<script>window.close();</script>')
// Notify main flow that auth code is available
options.events.emit('auth-code-received', code)