With this pull request I'd like to add token authentication.
If you have a valid authentication token obtained from a previous login, it is not necessary to perform the login again. Also, it's not necessary for an application using this library to store the user's credentials, as also discussed in issue #6 .
@stianaske , we might consider this PR stale and close it for now;
if @rogora or someone else would like to implement, I think it is worth thinking through the solution a bit
With this pull request I'd like to add token authentication. If you have a valid authentication token obtained from a previous login, it is not necessary to perform the login again. Also, it's not necessary for an application using this library to store the user's credentials, as also discussed in issue #6 .