diff --git a/native/identity-service/identity-service-context-provider.react.js b/native/identity-service/identity-service-context-provider.react.js --- a/native/identity-service/identity-service-context-provider.react.js +++ b/native/identity-service/identity-service-context-provider.react.js @@ -666,7 +666,7 @@ token, userIDs, ); - const identities = JSON.parse(result); + const { identities } = JSON.parse(result); return assertWithValidator(identities, identitiesValidator); }, versionSupported: () => { diff --git a/native/native_rust_library/src/identity/find_user_identities.rs b/native/native_rust_library/src/identity/find_user_identities.rs --- a/native/native_rust_library/src/identity/find_user_identities.rs +++ b/native/native_rust_library/src/identity/find_user_identities.rs @@ -34,8 +34,10 @@ } #[derive(Serialize)] +#[serde(rename_all = "camelCase")] pub struct UserIdentities { pub identities: HashMap, + pub reserved_user_identifiers: HashMap, } #[derive(Serialize)] @@ -81,7 +83,10 @@ }) .collect(); - Ok(UserIdentities { identities }) + Ok(UserIdentities { + identities, + reserved_user_identifiers: response.reserved_user_identifiers, + }) } } @@ -105,5 +110,5 @@ let user_identities = UserIdentities::try_from(response)?; - Ok(serde_json::to_string(&user_identities.identities)?) + Ok(serde_json::to_string(&user_identities)?) }