Parse session id only after successful auth
command-line client implementation