pub async fn logout() -> Result<AuthResponse, ApiError>Expand description
用户登出。
清空客户端 session Cookie,并删除数据库中对应会话记录。
Leptos server function,注册在 /api 路径下。
pub async fn logout() -> Result<AuthResponse, ApiError>用户登出。
清空客户端 session Cookie,并删除数据库中对应会话记录。
Leptos server function,注册在 /api 路径下。