I'm developing a CLI based application. It has a "login" command to perform authentication:
$ myapp login $ Type username: hector $ Type password: ***** $ Login success!
myapp login makes a request against a HTTP API and a authentication token (JWT) is returned, so I need to keep it in the client somehow, in order to send it in subsequent requests.
Should I store this token in disk? Or maybe keeping it in memory and make the session 'volatile'? Is there any pattern or well-known practice for this?