From 0c0f4f31f291fd266f86384da4af1a3755c6e588 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 16 Jun 2022 13:04:37 +0530 Subject: asking to delte client id on logout now. useful if user wants to login agian --- auth/auth.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'auth/auth.go') diff --git a/auth/auth.go b/auth/auth.go index a8d28c7..95ccd48 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -70,12 +70,17 @@ func openInBrowser(url string) { } if err != nil { - fmt.Println("There was an error while launching your browser.", err) + fmt.Println("There was an error while launching your browser.") fmt.Println("Please manually copy and paste the above URL into your web browser.") + fmt.Println(err) } } func Logout() { - deleteClientId() deleteToken() + fmt.Println("Deleted user credentials.") + if confirmInput("Delete your Client ID? [y/N] ") { + fmt.Println("Deleting Client ID...") + deleteClientId() + } } -- cgit v1.2.3