Feature/auth fix

Miners are now correctly authenticated.