You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +03:00
Make the error on introspection failure more explicit in the logs
This commit is contained in:
@ -191,6 +191,17 @@ pub enum TokenType {
|
||||
CompatRefreshToken,
|
||||
}
|
||||
|
||||
impl std::fmt::Display for TokenType {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
match self {
|
||||
TokenType::AccessToken => write!(f, "access token"),
|
||||
TokenType::RefreshToken => write!(f, "refresh token"),
|
||||
TokenType::CompatAccessToken => write!(f, "compat access token"),
|
||||
TokenType::CompatRefreshToken => write!(f, "compat refresh token"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl TokenType {
|
||||
fn prefix(self) -> &'static str {
|
||||
match self {
|
||||
|
Reference in New Issue
Block a user