You've already forked authentication-service
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:
@ -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
|
||||
|
Reference in New Issue
Block a user