Attempt auto close
This commit is contained in:
parent
114ee3c4b6
commit
b9105958c1
1 changed files with 2 additions and 1 deletions
|
@ -300,7 +300,8 @@ export function setupOAuthCallbackServerWithLongPoll(options: OAuthCallbackServe
|
||||||
log('Auth code received, resolving promise')
|
log('Auth code received, resolving promise')
|
||||||
authCompletedResolve(code)
|
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
|
// Notify main flow that auth code is available
|
||||||
options.events.emit('auth-code-received', code)
|
options.events.emit('auth-code-received', code)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue