diff --git a/cmd/goshrt/main.go b/cmd/goshrt/main.go index 04875c0..d82bb97 100644 --- a/cmd/goshrt/main.go +++ b/cmd/goshrt/main.go @@ -125,7 +125,10 @@ func main() { case 0: fmt.Printf("JWT Token: ") var toknStr string - fmt.Scanln(&toknStr) + _, err := fmt.Scanln(&toknStr) + if err != nil { + return err + } valid, err := auth.Validate(toknStr) if err != nil { return err