Cleaned up node authentication API, switched to using request as per Thomas' suggestion