ScatterDesktop
ScatterDesktop copied to clipboard
fix: issue with identity not being found
I had issues with login on my environment, a few of my friends also experienced the same, so we all rolled back to previous version.
I was curios why it isn't working and found out that the issue is pretty simple and easy to fix:
possibleId.getIdentity() can return undefined.
In this case identity.asOnlyRequiredFields(identityRequirements); fails with Cannot read property 'asOnlyRequiredFields' of undefined which stops the whole log in process.
I think this is indicative of a different issue actually. If the Permission's getIdentity method is returning null (which should never happen, hence the lack of a check there), then it's more likely that there was some data change in the Scatter object and perhaps that identity isn't linked properly anymore (change of ID, or something like that).
Though this fix would remove the error, it wouldn't handle the underlying problem. If you remove that Permission, and then log into the app again, does it still cause an error?