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 @@ -135,7 +135,12 @@ getOneTimeKeyArray(notificationsOneTimeKeys), ); const { userID, accessToken } = JSON.parse(registrationResult); - return { accessToken, userID, username }; + const identityAuthResult = { accessToken, userID, username }; + + return assertWithValidator( + identityAuthResult, + identityAuthResultValidator, + ); }, logInPasswordUser: async (username: string, password: string) => { await commCoreModule.initializeCryptoAccount();