async fn create_session(
database: &mut impl Database,
user_id: OwnedUserId,
device_id: Option<OwnedDeviceId>,
) -> Result<(OwnedDeviceId, String), LoginError>Expand description
Create a session, optionally with a user-provided device ID.
For more information about device IDs, see https://spec.matrix.org/v1.14/client-server-api/#post_matrixclientv3login