Indicates if an expiration time has passed, there is a small 1 min window that is removed so the token will not expire in transit
(expiration_time: &OffsetDateTime)
| 80 | /// Indicates if an expiration time has passed, there is a small 1 min window that is removed |
| 81 | /// so the token will not expire in transit |
| 82 | fn is_expired(expiration_time: &OffsetDateTime) -> bool { |
| 83 | let now = time::OffsetDateTime::now_utc(); |
| 84 | &(now + time::Duration::minutes(1)) > expiration_time |
| 85 | } |
| 86 | |
| 87 | pub(crate) fn oidc_url(region: &Region) -> String { |
| 88 | format!("https://oidc.{region}.amazonaws.com") |
no outgoing calls
no test coverage detected