We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2605d3a commit 5dfa9b9Copy full SHA for 5dfa9b9
crates/data-model/src/tokens.rs
@@ -294,7 +294,8 @@ impl TokenType {
294
pub fn check(token: &str) -> Result<TokenType, TokenFormatError> {
295
// these are legacy tokens imported from Synapse
296
// we don't do any validation on them and continue as is
297
- if token.starts_with("syt_") {
+ // Tokens starting `MDAx` are macaroons from even older versions of Synapse.
298
+ if token.starts_with("syt_") || token.starts_with("MDAx") {
299
return Ok(TokenType::CompatAccessToken);
300
}
301
if token.starts_with("syr_") {
0 commit comments