Setting this.connection to null manually

Hey,
I have a question:
is it okay to set this.connection = null in a server defined method that’s calling other methods, so I can bypass authentication because i need to do so? I know is dirty, I just want to know if there are any security implications

@sashko @benjamn @abernix, help wanted :smile: and thanks a lot!