connection.login(username, password) logs a user into a Cloudant account and gets the cookie back. Eventually this cookie will expire.
We need to consider the API consumer experience around when the cookie expires and the user is logged out, but the instance of the connection is still present. Do we want to transparently log the user in again if a request fails because the cookie is no longer valid (where logging in = get a new cookie)?
connection.login(username, password)
logs a user into a Cloudant account and gets the cookie back. Eventually this cookie will expire.We need to consider the API consumer experience around when the cookie expires and the user is logged out, but the instance of the connection is still present. Do we want to transparently log the user in again if a request fails because the cookie is no longer valid (where logging in = get a new cookie)?