1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

handlers: Add test for the compatibility login API

This commit is contained in:
Quentin Gliech
2023-02-23 14:47:13 +01:00
parent e1391fcb37
commit 97635375cc
2 changed files with 291 additions and 3 deletions

View File

@ -17,12 +17,12 @@ use rand::{
distributions::{Alphanumeric, DistString},
RngCore,
};
use serde::Serialize;
use serde::{Deserialize, Serialize};
use thiserror::Error;
static DEVICE_ID_LENGTH: usize = 10;
#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(transparent)]
pub struct Device {
id: String,