1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-31 09:24:31 +03:00

graphql: Expose the BrowserSession User-Agent

This commit is contained in:
Quentin Gliech
2023-08-29 16:50:44 +02:00
parent 5d3b8cd92f
commit a19f405e53
4 changed files with 19 additions and 0 deletions

View File

@ -87,6 +87,11 @@ impl BrowserSession {
BrowserSessionState::Active
}
}
/// The user-agent string with which the session was created.
pub async fn user_agent(&self) -> Option<&str> {
self.0.user_agent.as_deref()
}
}
/// An authentication records when a user enter their credential in a browser