迁移后端认证与拆分 Spacetime 客户端
This commit is contained in:
@@ -29,6 +29,7 @@ mod login_options;
|
||||
mod logout;
|
||||
mod logout_all;
|
||||
mod password_entry;
|
||||
mod password_management;
|
||||
mod phone_auth;
|
||||
mod puzzle;
|
||||
mod puzzle_agent_turn;
|
||||
@@ -67,7 +68,8 @@ async fn main() -> Result<(), std::io::Error> {
|
||||
let bind_address = config.bind_socket_addr();
|
||||
let listener = TcpListener::bind(bind_address).await?;
|
||||
|
||||
let state = AppState::new(config)
|
||||
let state = AppState::try_restore_auth_store_from_spacetime(config)
|
||||
.await
|
||||
.map_err(|error| std::io::Error::other(format!("初始化应用状态失败:{error}")))?;
|
||||
let router = build_router(state);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user