MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / is_expired

Method is_expired

crates/chat-cli/src/auth/builder_id.rs:475–477  ·  view source on GitHub ↗

If the time has passed the `expires_at` time The token is marked as expired 1 min before it actually does to account for the potential a token expires while in transit

(&self)

Source from the content-addressed store, hash-verified

473 /// The token is marked as expired 1 min before it actually does to account for the potential a
474 /// token expires while in transit
475 pub fn is_expired(&self) -> bool {
476 is_expired(&self.expires_at)
477 }
478
479 /// Save the token to the keychain
480 pub async fn save(&self, database: &Database) -> Result<(), AuthError> {

Callers 1

loadMethod · 0.80

Calls 1

is_expiredFunction · 0.70

Tested by

no test coverage detected