Using realm in a hybrid Unity (.NET) and iOS (swift) app

I’m currently working on a hybrid app which uses both Unity and native iOS. We are currently using realm SDKs in both environments (.NET and Swift). Trying to have a unified login via JWT for both app so both realms are working with the same data. Things seem to be working just about if I do the logins sequentially but I get some errors occasionally. Sockets closing because of 403 for example.

Is this way of doing things meant to be supported or is it asking for trouble? Any comments on the idea of having two realms in different environments working in the same process with the same JWT login?