diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-06-16 13:04:37 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-06-16 13:04:37 +0530 |
commit | 0c0f4f31f291fd266f86384da4af1a3755c6e588 (patch) | |
tree | 0490bfce9f732ca2f6f8b0fc3f5ad2e1f019c982 /auth/auth.go | |
parent | 1d72b87bca4042d36cea1f1e775803a5252cd224 (diff) |
asking to delte client id on logout now. useful if user wants to login agian
Diffstat (limited to 'auth/auth.go')
-rw-r--r-- | auth/auth.go | 9 |
1 files changed, 7 insertions, 2 deletions
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() + } } |