I think we need to run the parts we want to authenticate trough the node server.

Maybe it is time to start looking at webtokens...