Close PKCE Listening Port After Authorization (#1110)

Addresses the issue of an open listening port persisting 
after the PKCE authorization flow is completed.
This commit is contained in:
Bethuel Mmbaga
2023-08-29 10:13:27 +03:00
committed by GitHub
parent 80d9b5fca5
commit 1a9301b684
2 changed files with 15 additions and 7 deletions

View File

@@ -204,6 +204,7 @@ func openURL(cmd *cobra.Command, verificationURIComplete, userCode string) {
authenticateUsingBrowser := func() {
cmd.Println(browserAuthMsg)
cmd.Println("")
if err := open.Run(verificationURIComplete); err != nil {
cmd.Println(setupKeyAuthMsg)
}