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
Use unstable prefixes for scope names (#337)
This commit is contained in:
@ -46,7 +46,9 @@ impl Device {
|
||||
#[must_use]
|
||||
pub fn to_scope_token(&self) -> ScopeToken {
|
||||
// SAFETY: the inner id should only have valid scope characters
|
||||
format!("urn:matrix:device:{}", self.id).parse().unwrap()
|
||||
format!("urn:matrix:org.matrix.msc2967.client:device:{}", self.id)
|
||||
.parse()
|
||||
.unwrap()
|
||||
}
|
||||
|
||||
/// Generate a random device ID
|
||||
|
Reference in New Issue
Block a user