Implemented creation of auth key logic.