simple refact, store user info

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow
2023-06-22 12:18:03 +08:00
parent bacba010e3
commit 0947062d90
2 changed files with 3 additions and 37 deletions

View File

@@ -822,11 +822,7 @@ pub fn account_auth_cancel() {
#[cfg(feature = "flutter")]
pub fn account_auth_result() -> String {
let mut auth_result = account::OidcSession::get_result();
if let Some(auth) = auth_result.auth_body.as_mut() {
auth.user.ser_store_local = false;
}
serde_json::to_string(&auth_result).unwrap_or_default()
serde_json::to_string(&account::OidcSession::get_result()).unwrap_or_default()
}
#[cfg(feature = "flutter")]