You are checking the invite code in the browser side js. That doesn't keep any tech-savvy user from registering even without code. Is this correct?
However, due to timing constraints, I couldn't do this and instead used a simple encryption algorithm to have the hacker at least put in some effort to know the invite code :)
I will raise an issue on github for this.