mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-09-23 15:38:07 +00:00

* refactor: getting workspace id * refactor: check workspace id is match for http response * refactor: check http repsonse in valid by checing the workspace id * chore: update log * chore: fix test * chore: fix test * chore: add test * chore: update test
13 lines
405 B
Rust
13 lines
405 B
Rust
use flowy_error::FlowyResult;
|
|
|
|
pub const USER_SIGN_IN_URL: &str = "sign_in_url";
|
|
pub const USER_UUID: &str = "uuid";
|
|
pub const USER_EMAIL: &str = "email";
|
|
pub const USER_DEVICE_ID: &str = "device_id";
|
|
|
|
/// Represents a user that is currently using the server.
|
|
pub trait ServerUser: Send + Sync {
|
|
/// different user might return different workspace id.
|
|
fn workspace_id(&self) -> FlowyResult<String>;
|
|
}
|