mirror of
https://github.com/minio/minio-cpp.git
synced 2025-04-18 08:24:00 +03:00
fix(credentials): check expiry properly (#190)
Expiry flag was inverted when checking credentials. This causes ChainedCredentialsProvider to fail.
This commit is contained in:
parent
eb14af15cd
commit
89e4c0bfe1
@ -69,7 +69,7 @@ struct Credentials {
|
||||
bool IsExpired() const { return expired(expiration); }
|
||||
|
||||
explicit operator bool() const {
|
||||
return !err && !access_key.empty() && expired(expiration);
|
||||
return !err && !access_key.empty() && !expired(expiration);
|
||||
}
|
||||
|
||||
static Credentials ParseXML(std::string_view data, const std::string& root);
|
||||
|
Loading…
x
Reference in New Issue
Block a user