Skip to content

Commit 89e4c0b

Browse files
authored
fix(credentials): check expiry properly (#190)
Expiry flag was inverted when checking credentials. This causes ChainedCredentialsProvider to fail.
1 parent eb14af1 commit 89e4c0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/miniocpp/credentials.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ struct Credentials {
6969
bool IsExpired() const { return expired(expiration); }
7070

7171
explicit operator bool() const {
72-
return !err && !access_key.empty() && expired(expiration);
72+
return !err && !access_key.empty() && !expired(expiration);
7373
}
7474

7575
static Credentials ParseXML(std::string_view data, const std::string& root);

0 commit comments

Comments
 (0)