1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

Lookup and save upstream links

This commit is contained in:
Quentin Gliech
2022-11-23 16:31:47 +01:00
parent e8c8d0bf8a
commit cde9187adc
6 changed files with 293 additions and 12 deletions

View File

@ -46,3 +46,10 @@ pub struct UpstreamOAuthAuthorizationSession {
pub created_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
}
impl UpstreamOAuthAuthorizationSession {
#[must_use]
pub const fn completed(&self) -> bool {
self.completed_at.is_some()
}
}