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)
| 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> { |