fix bug #2870: use updated tickets

This commit is contained in:
Dietmar Maurer
2020-11-04 08:20:36 +01:00
parent c53797f627
commit 0081903f7c
2 changed files with 8 additions and 1 deletions

View File

@ -405,6 +405,9 @@ impl HttpClient {
///
/// Login is done on demand, so this is only required if you need
/// access to authentication data in 'AuthInfo'.
///
/// Note: tickets a periodially re-newed, so one can use this
/// to query changed ticket.
pub async fn login(&self) -> Result<AuthInfo, Error> {
if let Some(future) = &self.first_auth {
future.listen().await?;