Closes #66
GCloudAuthorizedUser::from_string defaults the token's expiry_time to None, which causes Token::has_expired to always return false. This results in AuthenticationManager::get_token never refreshing a token that was retrieved via a GCloudAuthorizedUser. I have refactored InnerToken to store expiry time as an OffsetDateTime instead of an Option<OffsetDateTime>, and that will default to 1 hour in the future (3600 seconds).
@djc It's no trouble at all - thank you for the rigorous review! I appreciate the commitment to quality. This is the first time I've submitted to an open-source project, so I'm excited to have done it :)
Closes #66
GCloudAuthorizedUser::from_string
defaults the token'sexpiry_time
toNone
, which causesToken::has_expired
to always return false. This results inAuthenticationManager::get_token
never refreshing a token that was retrieved via aGCloudAuthorizedUser
. I have refactoredInnerToken
to store expiry time as anOffsetDateTime
instead of anOption<OffsetDateTime>
, and that will default to 1 hour in the future (3600 seconds).